Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir what the use of EnableViewState="false"
Posted

Hi,
EnableViewState is the property of asp.net server controls which helps the control to persist data in the control across post-backs.
Refer this links to find the brief description about ViewStates of asp.net controls:
http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableviewstate.aspx[^]
http://msdn.microsoft.com/en-us/library/system.web.ui.control.enableviewstate.aspx[^]
http://msdn.microsoft.com/en-us/library/ms972976.aspx[^]

All the best.
--Amit
 
Share this answer
 
Comments
Prasad_Kulkarni 13-Jul-12 1:14am    
Kinda similar references.
My 5!
_Amy 13-Jul-12 1:15am    
Thank you Pprasad..!! :)
Control.EnableViewState Property[^]
It gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.

View state enables a server control to maintain its state across HTTP requests. View state for a control is enabled if all of the following conditions are met:

-The EnableViewState property for the page is set to true.
-The EnableViewState property for the control is set to true.
-The ViewStateMode property for the control is set to Enabled or inherits the Enabled setting.
Refer more:
http://msdn.microsoft.com/en-us/library/system.web.ui.control.viewstatemode.aspx[^]
http://msdn.microsoft.com/en-us/library/bb386448.aspx[^]

There are times when it is appropriate to disable view state, particularly to improve application performance.

Also have a look on: Page.EnableViewState Property[^] Which gets or sets a value indicating whether the page maintains its view state, and the view state of any server controls it contains, when the current page request ends.
 
Share this answer
 
Comments
Vani Kulkarni 13-Jul-12 1:13am    
Very Clear! 5!
Prasad_Kulkarni 13-Jul-12 1:14am    
Thank you Vani!
_Amy 13-Jul-12 1:21am    
Effective..!! +5!
Prasad_Kulkarni 13-Jul-12 1:25am    
Thank you :)
__TR__ 13-Jul-12 1:30am    
Nicely explained. +5!
enableviewstate false[^].

It's that easy!
 
Share this answer
 

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