What is view state and how this can be done and was this
there in asp?

Answer Posted / sudeesh i.g.

view state is state management technique used in ASP.net.
Its visibility is inside a current page. It is like session
state difference is that session for entire project all but
view state is visible for entire page. The data in view
state one page can't access from other page. it clear the
data when unload the page. it take more memory, it is not
suitable with gridview, detailsview, listview controls.

eg:

viewstate["id"]=request.querystring["id"];

or

viewstate["id"]=convert.toint32(gridview.datakeys[index][""].string();


like lot of example

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain architecture of your project ?

845


Which asp.net objects encapsulate the state of the client and the browser?

779


Explain model, view and controller represent in an mvc application? : asp.net mvc

705


How do I publish my asp.net application to my isp's web server?

787


What is caching? What are different ways of caching in asp.net?

895


What is a runtime version?

707


Give 2 examples for scenarios when routing is not applied?

785


What is the use of ASP.NET routing?

750


Distinguish between Server-side and Client-side code with its functionality?

839


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

1237


Which class is used to send an email message from an ASP.NET Web page?

758


What are the data controls available in asp.net?

695


What is session state server?

847


How to use multiple scriptmanager controls in a web page?

845


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

1688