i have a page that takes a while to load. so i though i would put a small gif that says loading during the time the page is loading. easy enough, i though so too.
I decided to would give it a go with ajax.net so Placed an UpdatePanel and an UpdateProgress panel.
Using VS2005:
In the UpdateProgress panel i placed the gif with the loading icon
I then droped a button into the UpdatePanel and added an onClick even and then placed a Resonce.Rediredct to the site i wanted to go to in the onClick Event.
Now this works fine, but its not what i want the site to do.
I want to have it that the page load event triggars the updatepanel event so that a user does not have to click the button to go to the next page but it still displays the gif while the page is loading.
any help would be much appriceted. Feel free to ask any questiions.
Start Free Trial