Hi danieldunn10,
From your description, I suggest you can add timer controller in asp.net. I have made a sample on my side (Disable button for 5 seconds). The following methods for your reference.
HTML:
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title></head><body><form id="form1" runat="server"><div><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:Button ID="Button1" runat="server" Text="Submit Request" /><br /><asp:Timer ID="Timer1" runat="server" Interval="1000"></asp:Timer></ContentTemplate></asp:UpdatePanel><br /><br /><br /></div></form></body></html>
ASPX.VB
Public Class WebForm3 Inherits System.Web.UI.Page Shared Count As Int32 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Me.IsPostBack Then Count = 0 Timer1.Interval = 1000 'Timer1.Enabled = False End If End Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Timer1.Enabled = True Button1.Enabled = False 'other End Sub Protected Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick If Count > 5 Then Count = 0 Button1.Enabled = True Timer1.Enabled = False Else Count = Count + 1 End If End Sub End Class
Icon:
Image may be NSFW.
Clik here to view.
Using the ASP.NET Timer Control with Multiple UpdatePanel Controls:
http://ajax.asp.net/ajax/documentation/live/tutorials/timercontrolwithupdatepanelstutorial.aspx
Best Regards,
Yohann Lu