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

List some of the important session state modes of asp.net.

506


Please brief not about xsd,xslt & xml?

544


What are the two properties that are common on every validation control?

559


How do you secure your configuration files to be accessed remotely by unauthorized users?

623


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

557






Can we have a web application running without web.config file?

525


What are different types of api?

533


What is hidden field in asp.net?

596


What is the difference between equals() and == in c#?

572


What is the difference between mechine.config and web.config?

734


What is session in http request?

556


Is global asax mandatory?

557


Explain different types of Caching techniques in ASP.NET?

551


What are the authentication types in asp.net?

575


Why session management is required?

540