My first Ajax Program Part 2

0

Written on 9:54 PM by Mj blog

My first Ajax program might have given a hint how its going to code ajax program in visual studio or web express edition. But there is a logical issue as a developer. What happens for a AJAX website in slower connection , traditionally a web page refreshes to give a indication to users that the web page is loading or some request response is happening but in AJAX nothing will happen since the page is not refresh only data is send in the xmlHTTPRequest the users might be confused ............ so what to do ?

tradionally we will think of using a progress bar in java script or some loading pics and code in javascript ..... lot of confusions rite. Luckly AJAX team has given a control called updatepanelprogress control. All you have to do is place the control in the design view or source view and map the update panel . Update progress control also allows us to keep traditional pictures or HTML or table etc so keep a Picture of GIF or put a text in there

the syntax looks like this








Just map the updatepanel and give the now loading text. when ever you hit the button with post back option the updatepanel will send the xmlHTTPRequest and Invokes the UpdatePanelProgress will invoke the Loading ... Message giving the end user that some action is being taken places and keep waiting ....

If you enjoyed this post Subscribe to our feed

No Comment

Post a Comment