Creating an Executable Script which accesses aspx form components and runs function
<p>Hello I have created and application which contains a gridview that is populated by an SQL database. I built a function which converts the gridview into an excel file and stores it on the server.</p>

<p>I would just like to know how I can write an executable script(which I will set to run at a certain time on the server) that will access the gridview in the .aspx file containing the gridview and run the convertToExcel() function located in the .cs file attached to the .aspx file and then close.</p>

<p>Thank you,
Fernando Diaz</p>
