<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://csharp.sabithkp.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SABI-CSahrp</title><link>http://csharp.sabithkp.com/blogs/</link><description>SABI's World of Csharp</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 (Build: 20423.869)</generator><item><title>progress bar in ASP.NET</title><link>http://csharp.sabithkp.com/blogs/progress_bar_in_aspne/archive/2009/07/15/progress-bar-in-asp-net.aspx</link><pubDate>Tue, 14 Jul 2009 16:50:00 GMT</pubDate><guid isPermaLink="false">5d2ff6a5-368d-45fa-a146-f3d026c9786e:1</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>
Here i show you how to use progres bar in your asp.net application step by step

First Open your visual Studio 2005 or Visual Studio 2008 after go to the file menu start a new website

Select ASP.NET AJAX-Enabled Web Site then click Ok button

Below you can see the source code






    Untitled Page


    
        
        &lt;div&gt;
        &lt;/div&gt;
    



Go to the deign view and select  a progressbar.gif from your computer(you can download prograss animated image from net) and paste your solution explorer
then Add UpdatePanel and UpdateProgress from Toolbox
Under the From tag you can see the code like this
&lt;div&gt;
   
        
        
       
        
        
       
        
        &lt;div&gt;
            &lt;br /&gt;
        
        &lt;/div&gt;
        
       
        
        
       
        
        
        &lt;img id="Img1" alt="" /&gt;
        
        
    &lt;/div&gt;

After Finishng the design go to the code window of the Button then insert the below code to the Button Clcik

System.Threading.Thread.Sleep(10000);
        label1.Text = &amp;quot;Page refreshed at&amp;quot; + DateTime.Today.ToLongDateString() + &amp;quot;&amp;quot; + DateTime.Now.ToLongTimeString();

When you click the button You can see Loading Progress bar After 10 second it will dispaly the current time and Date of your local system

Cheers!!
Sabith kp&lt;img src="http://csharp.sabithkp.com/aggbug.aspx?PostID=1" width="1" height="1"&gt;</description><category domain="http://csharp.sabithkp.com/blogs/progress_bar_in_aspne/archive/tags/AJAX/default.aspx">AJAX</category><category domain="http://csharp.sabithkp.com/blogs/progress_bar_in_aspne/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>