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
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What is the difference between “Web.config” and “Machine.Config”?
What is the difference between localization and globalization?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What are the benefits of Razor View?
What do you mean by View State and what is its role?
How would you get asp.net running in apache web servers?
What are the components of ado.net?
What is tracing? Where is it used?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
What is the purpose of using MVC programming pattern in ASP.NET?
What are the validation controls available in ASP.NET?
What is a web based system?
Do you know about caching with the datasource controls?
Where can I get information on cookies in asp.net?