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 the difference between visual basic and asp.net?
Explain about Application and Session Events ?
Can I have a unique key as foreign key?
In which event of the page life cycle, is the viewstate available?
What's the use of formatters in .net?
What are the main requirements for caching?
What is content page in asp net?
What is form method?
How will you load dynamic assembly?
What is the difference between executescalar and executenonquery?
How to send a DataReader as a parameter to a remote client ?
What is the procedure to create the environment for asp.net? : asp.net mvc
What is redirecting behavior?
Can you explain one critical mapping?
What is a web pool?