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.
Have you tried setting the enableViewState property within web.config so you'd have something that looks like:
<pages enableViewState="false">
....
</pages>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With