Answer Posted / jeyaseelan
view state is nothing but store all the current page
informations and the control details when the page is
postback.all the control details and values to be stored in
hidden field.Those hidden fields are creating dynamically
depending upon the page placed controls.If you want to
fetch the values of the previous page control(ex:'Name' is
the previous page control Id)
Get the value of name from second page
sample code:
string get_Name=viewstate["Name"].Tostring();
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What's the .net collection class that allows an element to be accessed using a unique key?
Which file is taken by compiler when we have both file Application and Server Configuration file?
Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?
Why SOAP is required?
What is close method? How its different from finalize and dispose?
How will you register com+ services?
What is the difference between user control an custom control? Advantages/disadvantages?
What is lazy initialization?
What is managed code and managed data in .net?
What are the different types of memory in .net?
What is namespace in .net?
What makes .net core cross platform?
What is .net and why it is used?
Please explain what is the .net framework and how does it work?
Write the .net syntax for 'while loop'?