title: Call server side sub after javascript timer is done
body: <p>The countdown timer in the online exam is implemented using JavaScript. If the countdown reaches 0:0:00, it alerts the user and it proceeds to the next web page (shown below):</p>
  
  <pre><code>function myTimer(startVal,interval,outputId, dataField){
  ...
  var current = this.value;
      this.OutputCntrl.innerHTML = this.Hours(current) + ':' + this.Minutes(current) + ':' +  this.Seconds(current);
      this.currentTimeOut = setTimeout("Timer.go()", this.interval);
                       }
      else             {
      window.alert("Time is up! Exam will proceed to next module.");
      window.location = "Conf_English.aspx"
                                    }
  </code></pre>
  
  <p>And if there are still some time left, options are shown in the web form (shown below):
  <img src="https://i.stack.imgur.com/VpVeK.png" alt="enter image description here"></p>
  
  <p>When Proceed Button is click, the questions and answers of the examinee (temporarily stored in a datatable) will be stored in the database.</p>
  
  <p>The problem here is the countdown timer is being run by a client-side script and the insertion of data is coded in the server-side. I can't also make a javascript function that will insert the data because base on what I read on some articles, it is not advisable to access the database through client-side scripts which I see is right base on the concept of ASP.Net. Can someone suggest a good method to do this? Thanks.</p>