I have a simple web page - I want the page to refresh after n minutes AND I need to have a server side function occur when the page refreshes. I am using
<meta http-equiv="REFRESH" content="20" />
<meta http-equiv="pragma" content="no-cache" />
in the header .. to accomplish this.
I want to force the PostBack when the page refreshes and I need to make it as SIMPLE as possible - someone else will be maintaining the code later and they are not fluent in c# or html; so I need to follow KISS a bit more strictly.
I would like to avoid adding update panels ajax etc - and continue with the refresh meta tag as it is in (.aspx) text file and they can handle text easier.
How can I force a Postback when the page refreshes ?
EDIT I do not want to send anything back to the server. I want the server itself to rerun a query that sends data to the client. The query has a dynamic parameter set in a dictionary - the dictionary is initially loaded with some csv values from a web.Config AppSettings . On Each refresh an index value needs to be incremented [Dictionary Key] and the query run again with the new value.