title: How to execute javascript from c# in asp.net
body: <p>I am working on asp.net mvc app in which i have to perform CRON job to execute this:</p>
  
  <p>==> I have to execute webpage of my application (which contains ajax request) after every two mins. It like tracking someone time to time.</p>
  
  <p>(it is basically executing google map api so usage of javascript is compulsory)</p>
  
  <p>I am wondering how to execute webpage containing javascript same as we execute on browser. I m invoking Application_BeginRequest function in MVC that is called by cron job after every two mins. So how to execute demo page containing javascript.</p>
  
  <p>I have searched alot but did'nt find any useful resources.</p>
  
  <p><strong>Edit:</strong>
  Working of application:</p>
  
  <p>1- CRON job calls Application_Begin function after every two mins</p>
  
  <p>2- Then i want to call DemoPage which contains javascript and ajax request. first when Demo page requested, ajax call made to server which returns some data
  3. Then from ajax success, i execute response data with some other data using javascript google map api ( with RouteBox, locating latlng on route ).</p>
  
  <p>3- If point is not in route, it will send alert email.</p>
  
  <p>Its little difficult to explain what i want, but i guess you got my point ?</p>
  
  <p><strong>MORE DETAILS:</strong></p>
  
  <p>When page requested, it returns json string of route, and i have list of latlngs which i need to test against that json string which is done by RouteBox class written in javascritp.</p>