ASP.NET - View State being passed in URL
When submitting forms using the "GET" method, I am getting a huge URL containing ViewState (as well as other values I don't want).
e.g.
http://mysite.com/page.aspx?__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTI5NjY4NDkzNw9kFgICAw9kFgICBw8PFgIeBFRleHQFOzx0YWJsZT48dHI%2BPHRkPlN0YXJ0aW5nPC90ZD48dGQ%2BVGhlIFRhYmxlPC90ZD48L3RyPjwvdGFibGU%2BZGRkM8TNA9%2Fwbz9egjjCUkK29Hg%2BRJE%3D&__EVENTVALIDATION=%2FwEWAwKi9PjFBwKM54rGBgLWlM%2BbAm8w77Lt5Q4OR%2FzTWD8VQiy36FWA&days=6&displayType=开发者_Go百科dash&Button1=Back
You can see, there are the values I want at the very end, but I want to get rid of everything else. How can I do this?
精彩评论