Disable viewstate
>I want to disable viewstate . How I can do that?
>Even the propery is false it's saving the state
>Even the propery is false it's saving the state
As I wrote ASP.NET always write Page hash key to view state. To disable this behavior you need to override page SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium functions and to disable the default Page behavior by not calling page base class. Those functions persist viewstate data in hidden field.
protected override void SavePageStateToPersistenceMedium(
object viewState)
{
}
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}