what is the lifespan of the items stored in viewstate ?
Answers were Sorted based on User's Feedback
Answer / bhawesh
Item stored in ViewState exist for the life of the current
page. Or the life of a page till postback.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / suresh
ViewState is newly introduced in ASP.Net to hold the status of the current page values when submitted to the server. Life of ViewState is till the current page postbacks.
Note : You may save a lot of coding by maintaining the ViewState of the objects in your Web Form
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / priya arun
view state life span is only to current page itslef....
while navigating to another page,the state page discard the
value ...so view state can't maintain the value in next
page.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / raman
View state information is stored in the hidden fields,till
the browser is closed the view state information can be
seen
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between ienumerable and iqueryable?
What is a strong name in c#?
What is difference between value and reference types ?
Which class comes after the SortedList class?
1.write a program in C# to find a given point which is inside in a circle. Given circle's radius and its center point? 2.Write a program in C# to generated 20 prime numbers greater than a given number? (It should be more efficient for large numbers also) 3. Write a Code to check whether a given point is inside a circle or not? given Circle's raduis and its center point. 4. using oops concept, design an elevator do not forget buttons on each floor..
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
What is gac? How to put assembly in gac?
Why do we need a singleton class?
How to add controls dynamically to the form using c#.net.
What do you mean by stack and heap in c#?
I want to print "Hello" even before main() is executed. How will you achieve that?
What is difference between private and protected in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)