Exforsys
+ Reply to Thread
Results 1 to 4 of 4

ASP.NET Control ViewState

This is a discussion on ASP.NET Control ViewState within the Microsoft .NET forums, part of the Programming Talk category; Hi Everybody, I am new to ASP.NET and also a fresh member of this site. I am eager to know ...

  1. #1
    Bazeer is offline Junior Member Array
    Join Date
    Apr 2007
    Answers
    1

    Smile ASP.NET Control ViewState

    Hi Everybody,
    I am new to ASP.NET and also a fresh member of this site. I am eager to know about the 'ViewState' property of controls such as textbox. What is purpose of the above property and what about the control with that property is set to ON mode? Is this a necessary one to a control?Plz help me...





    Thanks,
    Basheer


  2. #2
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108
    ViewState property is a vital property of ASP.NET that has great impact on appearance of pages. To name one of the impacts is page size. Its functionality is limited not only to page appearance but also plays a great role in the performance of server side.


  3. #3
    Ralph is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    114
    ashlee from your statement I understand that 'ViewState' property can be controlled by users. Am I right? If so what are the levels in which a user can control the ViewState property.


  4. #4
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    Bazeer Viewstate property can be set to ON or OFF as per the needs. But one must be very careful while toggling this mode as turning off ViewState unnecessarily would make the control lose the ability to track any values in ViewState and the user can no longer use the ViewState collection to store values from their application code. When the ViewState is turned on user ends up picking up all changed values of all controls, that have changed non-post back values and that have ViewState enabled.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...