I'm currently working on some ajax polling stuff and I don't want do pass through all the process if nothing has changed in the xml file I'm using for my asynchronous process.
However after each polling I want to set the value DateTime.Now, but cannot do it with
Request.Form[ "lastPoll" ] = DateTime.Now.ToUniversalTime().ToString();
because this is read only.
This is how i get the last polled datetime:
DateTime lastPoll = Convert.ToDateTime(Request.Form[ "lastPoll" ]).ToUniversalTime();
Thanks for your help.