Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Homework
Please give your valuable suggestions&answers and
 
thanks for responses.
Posted 28-Aug-12 21:00pm
Edited 28-Aug-12 21:12pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please refer this link Click here[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi ,
ViewState it's hidden Fields in pages contains the states of those controls who enable ViewState ,also makes you save your data between postback that occur on the page .
You can use it when you want store the Data when postback occur
like this
Viewstate.Add( "MyViewState", "test" );
when you want to retrieve the Data :
if( Viewstate["MyViewState"]!=null)
{
   string MyData =  Viewstate["MyViewState"].ToString();
}
Check this links
Beginner's Guide To View State [^]
http://msdn.microsoft.com/en-us/library/ms972976.aspx[^]
http://msdn.microsoft.com/en-us/library/bb386448%28v=vs.100%29.aspx[^]
Best Regards
M.Mitwalli
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

View State is one of the most important and useful client side state management mechanism.
 
It can store the page value at the time of post back (Sending and Receiving information from Server) of your page.
 
ASP.NET pages provide the ViewState property as a built-in structure for automatically storing values between multiple requests for the same page.
 
View state data is encrypted and cannot be viewed with software like FireBug
 
Understanding ASP.NET View State[^]
Here you can get detailed description with how you can interpret (and protect) the data stored in View State.
 
Also refer:
An Introduction to View State[^]
  Permalink  
Comments
Mohamed Mitwalli at 29-Aug-12 3:11am
   
5+ for explanation
Prasad_Kulkarni at 29-Aug-12 5:01am
   
Thank you Mohamed!
Manas Bhardwaj at 30-Aug-12 14:12pm
   
Very good +5!
Prasad_Kulkarni at 30-Aug-12 23:55pm
   
Thank you Manas!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Here: ViewState: Various ways to reduce performance overhead[^]
 
I see you asked various state management technique question here.
Doing this[^] would had helped a lot:
MSDN: ASP.NET State Management Overview[^]
State management in ASP.NET - 1[^]
ASP.Net State Management Techniques - 2[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 215
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,061
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 29 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100