meera mishra
Why we use view state and session state in asp.net2.0?Explain?
By meera mishra in ASP.NET on Aug 19 2009
  • Balaji Prabakaran
    Jan, 2011 12

    View state and session state is used to retain the values of controls(Textbox,radiobutton,etc) in case of postback .....

    Session state example :

    1:Store values in session variable :

    session["String"]="value";

    2:Retrieve session variable value :

    string getName=session["String"]

    View state:

    Just make EnableViewState property of the control to true....

     

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS