i have a test window on which i have to use count down for time. when we click on next button page is posted back and on postback new question is selected. total time will be selected from database.
i get total time in code behind , now i have to show it in countdown on the page.
can anyone help me?
Loading
dev soniPosted Dec 10, 2012, 5:37 AM
just put your total time in a session variable and start the count down with the help of Timer control or you can use the jquery.
But remember one thing ,put the code (where you will set the session variable) into the !ispostback condition and you are done.now when you will click on next button then the timer's time will not change because of the if condition on the session variable.
Thanks
Dev :)