What are a view state and how the state is maintained? What are different state management options available in ASP.Net?
By in ASP.NET on Jul 20 2006
  • Mar, 2007 27

    VIEW STATE IS NOTHING BUT MAINTAINING CONTROLS DATA UNDER POSTBACK IMPLEMENTATION

    WE CAN STORE THE VIEWSTATE DATA WITHIN HIDDEN FIELD CONTROL OF HTML.

    WITH USING HIDDENFIELD THE DATA STORED IN STATEBAG OBJECT .

    SERVER MAINTAINING THE CLIENTS INFORMATION DURING NAVIGATION OF ONE PAGE TO ANOTHER IS KNOWN AS STATEMANAGAMENT

    WE CAN ACHIEVE THIS WITH PARTICULAR CONCEPTS

    1.COOKIES

    2.SESSIONS

    3.VIEWSTATE

    4.APPLICATION

    5.CACHE

    6.QUERYSTRING

    • 0
  • Jul, 2006 20

    Use the View State property to save data in a hidden field on a page. Because ViewState stores data on the page, it is limited to items that can be serialized. If you want to store more complex items in View State, you must convert the items to and from a string.

    ASP.NET provides the following ways to retain variables between requests:

    • Context.Handler object Use this object to retrieve public members of one Web form’s class from a subsequently displayed Web form.
    • Query strings Use these strings to pass information between requests and responses as part of the Web address. Query strings are visible to the user, so they should not contain secure information such as passwords.
    • Cookies Use cookies to store small amounts of information on a client. Clients might refuse cookies, so your code has to anticipate that possibility.
    • View state ASP.NET stores items added to a page’s ViewState property as hidden fields on the page.
    • Session state Use Session state variables to store items that you want keep local to the current session (single user).
    • Application state Use Application state variables to store items that you want be available to all users of the application.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS