I have a site that is set up to validate the user from time to time. Every time the user is validated the user is redirected to the login page, which is another web application under IIS. Since the user is still valid it will be redirected back, but during this time it has lost the postback data making the whole form set to default.
My first thought was to just turn off view state on the form and use get instead of post on the form tag
<form runat="server" method="get" enableviewstate="false">...</form>
The get command works, but the querystring get the view state is printed making the url to long. Is there some easy to solve this? Basically what I want to do is to turn off viewstate completely, I've tried to use the enableviewstate
, but I can't get it to dissapear.