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
Explain how viewstate is being formed and how it's stored on client in .net?
Explain boxing and unboxing in .net.
How do you create threading in.net?
Explain the difference between managed and unmanaged code?
Explain what is heap and what is stack?
Explain garbage collection?
Explain me what is .net web service?
Explain me what is the .net framework and how does it work?
What tools is used to develop .NET applications?
Explain webfarm vs webgardens in .net?
What are the similarities and difference between class and structure in .net?
i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?
State the differences between the dispose() and finalize().
What is machine.config in .net?
What does stateless mean?