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 are the features that make asp.net more used framework? : asp.net mvc
What is http post action?
What are the different types of cookies in asp.net?
What are sql joins?
What is the difference between viewstate and hidden field in asp.net?
Can you explain architecture of your project ?
In order to get assembly info which namespace we should import?
Distinguish between Server-side and Client-side code?
How do we ensure view state has not tampered?
Define what is razor? : asp.net mvc
How does session authentication work?
What is asp.net mvc? : asp.net mvc
Please briefly explain the usage of global.asax?
Explain about Automatic resource management?
What is redirecting behavior?