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
What is cache in asp net?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
Differentiate between a page theme and a global theme?
Why mvc is better than asp.net? : Asp.Net MVC
Explain different types of Caching techniques in ASP.NET?
How can you identify that the page is post back?
Is a dll file an executable?
What is the difference between Hash table and Array list?
How to use push notification?
Explain diff between dataset and datareader?
Do you know caching feature?
Is it right that ASP.NET Web API has replaced WCF?
How do I know asp.net mvc version? : Asp.Net MVC
Can a master page have more than one contentplaceholder?
Explain Optimization technique description?