My webapplication is online exam site. when user click on start for writing test, i have to restrict the user particular time only, after time is completed message should display to the user that your exam time is finished and he redirect to home page, how can i write the code, can i go for timer control or webservice which one is good for the online exam site, please help me.
My webapplication is online exam site. when user click on start for writing test,
Share
You need to capture the time when the user starts the test inside a Session variable:
Then when you postback the page get the difference between the current time and the time you stored in the Session:
If the time difference is more than what you have decided send user to home page.