.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> ASP.NET Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Using ASP .NET Ajax UpdateProgress Control

Posted By:Rajshree       Posted Date: October 28, 2010    Points: 15    Category: ASP.NET Controls    URL: http://www.dotnetspark.com  

Using Multiple UpdateProgress Control with AssociatedControlId in ASP .net Ajax
 

Source Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="mPbar.aspx.vb" Inherits="mPbar" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>





    Untitled Page


   
     

  
     
     
  
  
     
     
  

        
           
                                 OnClick="Button1_Click" />
              
           

        

     

        
           
                                 OnClick="Button2_Click" />              
              
           

        

     

                     AssociatedUpdatePanelID="UpdatePanel1">
           
               Updating ...
           

        

     

                     AssociatedUpdatePanelID="UpdatePanel2">
           
               Updating ...
           

        

     

   




VB Code:


Partial Class mPbar
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        System.Threading.Thread.Sleep(2000)
        Label1.Text = DateTime.Now.ToString("hh:mm:ss tt")

    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        System.Threading.Thread.Sleep(2000)
        Label2.Text = DateTime.Now.ToString("hh:mm:ss tt")
    End Sub
End Class


Thanks

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend