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
List some of the important session state modes of asp.net.
Please brief not about xsd,xslt & xml?
What are the two properties that are common on every validation control?
How do you secure your configuration files to be accessed remotely by unauthorized users?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
Can we have a web application running without web.config file?
What are different types of api?
What is hidden field in asp.net?
What is the difference between equals() and == in c#?
What is the difference between mechine.config and web.config?
What is session in http request?
Is global asax mandatory?
Explain different types of Caching techniques in ASP.NET?
What are the authentication types in asp.net?
Why session management is required?