Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to remove viewstate from page completely without using MVC pattern.

I am using c# 4.0

Thanks in advance.
Posted

1 solution

you can make entry in web.config to remove viewstate by
using <pages viewstate=”false”/> ..</pages>
 
Share this answer
 
Comments
Dalek Dave 3-Dec-10 4:41am    
Good Call
vijay__p 3-Dec-10 5:07am    
but still there is an entry of ViewState on the page...

Is there any way to remove entry from page.
Brij 3-Dec-10 8:21am    
We can not remove the entry entirely from the page.Because ASP.NET uses it for its own purposes also.
shankark 17-Feb-11 4:40am    
Remove the form Tag from the page(if the page has only links) to entirely remove viewstate from the page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900