How to set a TIMER ?
-
I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?
-
I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?
you can use AJAX Timer Control
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
-
you can use AJAX Timer Control
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"
Abhijit Jana wrote:
AJAX Timer Control
i am not able to find any example on
AJAX Timer Control
those present here on codeproject are too big and complicated ... Do you have any direct or simple example (or link) forAJAX Timer Control
??? :confused: -
Abhijit Jana wrote:
AJAX Timer Control
i am not able to find any example on
AJAX Timer Control
those present here on codeproject are too big and complicated ... Do you have any direct or simple example (or link) forAJAX Timer Control
??? :confused:Not sure if this is what you need but it may help... Create a standard ASPX Timer control with an AJAX update panel. ...
<asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:Timer ID="tmrClock" runat="server" Interval="1000" OnTick="tmrClock_Tick"></asp:Timer> <asp:UpdatePanel ID="updPnlClock" UpdateMode="Conditional" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="tmrClock" EventName="Tick" /> </Triggers> <ContentTemplate> <asp:Label ID="lblTime" runat="server" ForeColor="#B22222"></asp:Label> </ContentTemplate> </asp:UpdatePanel>
... Code Behind Page: Subscribe to the Tick event on the ASP Timer control. This one represents a ticking clock. protected void tmrClock_Tick(object sender, EventArgs e) { lblTime.Text = DateTime.Now.ToLongTimeString(); } -
I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?
tina- wrote:
I want to set a timer, in my web application.
Use javascript setTimeout[^]. If you have AJAX server extensions installed and got AJAX toolkit DLL, you can try the timer control. It encapsulates the settimeout functionality.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions