Hello, I want to click a gridview row , in that available exams,like c#, java, etc and the online exam should begin with timer, how to do that ? Test will begin in the next page with timing in the right. Hope you understood the requirement. Notification
of 5 minutes should also be there. Thanks
I understand that would be some fix time (30 minutes or 50 minutes or so) to complete one exam. Considering that, once any user click and start an exam, then you can store that start time and end time (by adding exam time 30/50 minutes in start time) in
a database table. This way, every time when page refreshes you can pole to this database table for this record to show a timer for showing remaining time. Hope that make sense in your code scenario.
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
According to your description, as far as I know, you could add check this line code, when this.Hours(current) equal to 0, and this.Minutes(current) equal to 5, and this.Seconds(current) equal to 0, trigger Popup, show left 5 minutes.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
82 Points
187 Posts
How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 25, 2017 10:32 AM|Shuklaji123|LINK
Hello, I want to click a gridview row , in that available exams,like c#, java, etc and the online exam should begin with timer, how to do that ? Test will begin in the next page with timing in the right. Hope you understood the requirement. Notification of 5 minutes should also be there. Thanks
All-Star
31362 Points
7055 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 25, 2017 06:46 PM|kaushalparik27|LINK
I understand that would be some fix time (30 minutes or 50 minutes or so) to complete one exam. Considering that, once any user click and start an exam, then you can store that start time and end time (by adding exam time 30/50 minutes in start time) in a database table. This way, every time when page refreshes you can pole to this database table for this record to show a timer for showing remaining time. Hope that make sense in your code scenario.
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
82 Points
187 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 26, 2017 08:55 AM|Shuklaji123|LINK
thanks a lot but how to implement that in my current online exam portal...
Contributor
6730 Points
2715 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 27, 2017 08:11 AM|Eric Du|LINK
Hi Shuklaji123,
According to your description, as far as I know, you could add button click then redirect to the related page.
when you open this page, you could populate the data from database in Page_Load Event.
About the Timer, you could use Timer control or JS.
Here is the complete code of this project, please check:
Sample Online Exam:
http://www.dotnetfunda.com/articles/show/2183/sample-online-exam
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
82 Points
187 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 27, 2017 10:27 AM|Shuklaji123|LINK
thanks a lot...., but I also want to notify the student that 5 minutes is left in a popup ... How to do that ?
Contributor
6730 Points
2715 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Feb 28, 2017 09:10 AM|Eric Du|LINK
Hi Shuklaji123,
According to your description, as far as I know, you could add check this line code, when this.Hours(current) equal to 0, and this.Minutes(current) equal to 5, and this.Seconds(current) equal to 0, trigger Popup, show left 5 minutes.
Here is a tutorial about how to use jQuery Popup:
https://jqueryui.com/dialog/
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
82 Points
187 Posts
Re: How to open a particular exam by clicking the Gridview row,with Timer of total duration?
Mar 01, 2017 05:11 AM|Shuklaji123|LINK
thanks, will implement it, in my project and let u know.... Thanks a lot.......