Last post Mar 01, 2017 05:11 AM by Shuklaji123
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
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.
Feb 26, 2017 08:55 AM|Shuklaji123|LINK
thanks a lot but how to implement that in my current online exam portal...
Feb 27, 2017 08:11 AM|Eric Du|LINK
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:
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 ?
Feb 28, 2017 09:10 AM|Eric Du|LINK
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.
this.OutputCntrl.innerHTML = this.Hours(current) + ':' + this.Minutes(current) + ':' + this.Seconds(current);
Here is a tutorial about how to use jQuery Popup:
Mar 01, 2017 05:11 AM|Shuklaji123|LINK
thanks, will implement it, in my project and let u know.... Thanks a lot.......