Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am devolving a on line exam module in asp.net please send code for stop watch...
Posted

you have to use upadte panel ajax control ....and ajax timer...set interval of timer to 1 sec ...and on timer tick event you have to code .....go through following article
http://www.dotnetspider.com/forum/304722-Creating-Stop-Watch-using-Asp.Net-C.aspx[^]
 
Share this answer
 
Comments
URVISH_SUTHAR1 18-Jan-13 0:48am    
Good :)
<div>        <asp:ScriptManager ID="ScriptManager1" runat="server">        </asp:ScriptManager>        <asp:UpdatePanel ID="UpdatePanel1" runat="server">            <ContentTemplate>                <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick">                </asp:Timer>                <br />                <br />                                <br />                <asp:Label ID="Label1" runat="server" Text="00:00"></asp:Label>                <asp:Button ID="Button1" runat="server" Text="Start" OnClick="Button1_Click" />                <asp:Button ID="Button2" runat="server" Text="Reset" OnClick="Button2_Click" />            </ContentTemplate>        </asp:UpdatePanel>    </div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900