I noticed that a lot of people found my mouse pointer as AJAX progress indicator example by using search terms suggesting they were looking for a more graphical indicator. So, here’s an example of doing something more… Web 2.0.

Like last time, I’ll base it on a standard UpdatePanel demo using a button control to set a time/date label, with an artificial delay:

CSS style as ASP.NET AJAX progress indicator(By Dave Ward)<asp:ScriptManager ID="ScriptManager1" runat="server" />
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)
<div id="Container" class="Normal">
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)  
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)    
<ContentTemplate>
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)      
<asp:Label ID="Label1" runat="server" Text="Update Me" />
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)      
<asp:Button ID="Button1" runat="server" 
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)        OnClick
="Button1_Click" Text="Button" />
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)    
</ContentTemplate>
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)  
</asp:UpdatePanel>
CSS style as ASP.NET AJAX progress indicator(By Dave Ward)
</div>

CSS style as ASP.NET AJAX progress indicator(By Dave Ward)protected void Button1_Click(object sender, EventArgs e)
}

I’ll style the container div with CSS to add a simple border and set up a class for the progress state:
CSS style as ASP.NET AJAX progress indicator(By Dave Ward).Normal
}

Finally, hook up our event handlers for BeginRequest and EndRequest:
>

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2021-07-15
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2022-01-01
相关资源
相似解决方案