I need to completely disable viewstate for an aspx page inside my web application. I have gone through different blogs and what I understand is that we must set <%@ Page EnableViewState="false" ...%>
. But this is not working. My question is, wheteher this is enough to disable viewstate for all the controls inside the page? Or Should i make any additional modifications? Please specify if any. I dont want viestate enabled for even a single control inside the aspx page
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
If you truly don't need postback, you can remove the form element from your page, this will remove the viewstate entirely.
Disabling View State
/web.config
file.I think the quotes should be:
Apart from that, if you are still seeing the hidden fields then they are used by ASP.Net. You may see:
Page.EnableViewState Property