tutebox.com

Computers

Creating a AJAX Refresh bar

Lets Create a AJAX Loading Bar for a ASP.NET  web application :D .Its a Really simple design with few lines of code ..

You will need some pre requisites for this design .Im using Microsoft Visual Web Developer 2008 Express Edition even you can use  Microsoft Visual Studio

  • First Create a AJAX enabled web site
  • Create a ASP Page (AJAX Web Form)
  • Insert Update Panel from AJAX Extensions in toolbox
  • Then Place the Controller inside that that panel (Example – If you want to load in a button click place a button)

Coding

To see the animation visible to some time we have to create a artificial network delay.

Private sub Buttion1_click()

System.Threading.Thread.Sleep(3000)

‘time is in milliseconds

End sub

Coding 2

Next step is we must visually show the loading bar.

for this we need a Animated Gif File..Like this

ajax-loaderYou can easily create these kind of animations form  http://www.ajaxload.info/

  • To the AJAX Form internet the Update Progress Control AJAX Extensions in toolbox
  • Inside that panel place the Animated GIF File

I think you are done !

Here a Screen cap from a sample project used AJAX Refresh bar.

Tagged , , , ,

Recommend this post

Related Posts

5 Comments

  1. ruzeenJune 20, 2010 at 11:04 amReply

    tutorial එක නම් මැක්ස. ඔහොම යමු! :)

  2. hanxlkJune 20, 2010 at 11:20 amReply

    Its kinda more messy in PHP yet i prefer that but I like the way how Microsoft has come up with it…
    Nice post..

  3. breakupsJune 21, 2010 at 10:35 amReply

    More people need to read this and understand.. keep it up…

  4. Stephania WewerkaJuly 29, 2010 at 4:00 amReply

    I admire what you have done right here. Nice post. keep writing..

  5. crazyneoApril 9, 2011 at 4:13 pmReply

    To the AJAX Form internet the Update Progress Control AJAX Extensions in toolbox ” wot does ths mean ?

Leave a reply

Your email address will not be published. Required fields are marked *

*

Stay Connected