Click here to Skip to main content
15,913,333 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionEditing all GridView rows Pin
Abbas8229-Nov-06 11:12
Abbas8229-Nov-06 11:12 
AnswerRe: Editing all GridView rows Pin
minhpc_bk29-Nov-06 16:02
minhpc_bk29-Nov-06 16:02 
QuestionVIEWSTATE Pin
saravanan0529-Nov-06 9:13
saravanan0529-Nov-06 9:13 
JokeRe: VIEWSTATE Pin
Not Active29-Nov-06 9:15
mentorNot Active29-Nov-06 9:15 
JokeRe: VIEWSTATE Pin
Grapes-R-Fun29-Nov-06 9:17
Grapes-R-Fun29-Nov-06 9:17 
AnswerRe: VIEWSTATE Pin
Grapes-R-Fun29-Nov-06 9:16
Grapes-R-Fun29-Nov-06 9:16 
GeneralRe: VIEWSTATE Pin
saravanan0529-Nov-06 10:03
saravanan0529-Nov-06 10:03 
GeneralRe: VIEWSTATE Pin
Grapes-R-Fun29-Nov-06 13:08
Grapes-R-Fun29-Nov-06 13:08 
This is how you store info in View State:

ViewState["firstName"] = _firstName;

and this is how you retrieve info from View State:

_myName = (ViewState["firstName"]).ToString(); //make sure you type cast!

View State is useful if you want to hold onto data that should be available at all times, no matter which page/session users are in. But, it comes with a price! It will be fetched back and fort with each postback, and after encryption (you do want it encrypted!) it grows even bigger. You would typically want to keep your View State less than 500 characters, but up to 1000 characters is managable.

http://www.tanguay.info/web/codeExample.php5?id=559




Nila

"...for that, I will need a large cup of coffee and a bran muffin!" -Samantha Bea

GeneralRe: VIEWSTATE Pin
Guffa29-Nov-06 12:50
Guffa29-Nov-06 12:50 
JokeRe: VIEWSTATE Pin
Grapes-R-Fun29-Nov-06 13:11
Grapes-R-Fun29-Nov-06 13:11 
AnswerRe: VIEWSTATE Pin
Ravi Sant13-May-11 10:21
Ravi Sant13-May-11 10:21 
QuestionAdding multiple attributes to one control event Pin
Grapes-R-Fun29-Nov-06 9:06
Grapes-R-Fun29-Nov-06 9:06 
AnswerRe: Adding multiple attributes to one control event Pin
Not Active29-Nov-06 9:18
mentorNot Active29-Nov-06 9:18 
GeneralRe: Adding multiple attributes to one control event Pin
Grapes-R-Fun29-Nov-06 9:37
Grapes-R-Fun29-Nov-06 9:37 
GeneralRe: Adding multiple attributes to one control event Pin
Not Active29-Nov-06 9:43
mentorNot Active29-Nov-06 9:43 
GeneralRe: Adding multiple attributes to one control event Pin
Grapes-R-Fun29-Nov-06 9:54
Grapes-R-Fun29-Nov-06 9:54 
Questionasp: hyperlink and asp:datalist [modified] Pin
woodsctock8829-Nov-06 7:53
woodsctock8829-Nov-06 7:53 
AnswerRe: asp: hyperlink and asp:datalist Pin
ednrgc29-Nov-06 8:42
ednrgc29-Nov-06 8:42 
Questionautopostback Pin
saravanan0529-Nov-06 6:48
saravanan0529-Nov-06 6:48 
AnswerRe: autopostback Pin
ednrgc29-Nov-06 6:57
ednrgc29-Nov-06 6:57 
AnswerRe: autopostback Pin
Ravi Sant13-May-11 10:23
Ravi Sant13-May-11 10:23 
QuestionASP.Net dynamic user control parsing Pin
Clickok29-Nov-06 6:43
Clickok29-Nov-06 6:43 
AnswerRe: ASP.Net dynamic user control parsing Pin
minhpc_bk29-Nov-06 16:08
minhpc_bk29-Nov-06 16:08 
GeneralRe: ASP.Net dynamic user control parsing Pin
Clickok30-Nov-06 2:35
Clickok30-Nov-06 2:35 
QuestionSetting a calendar's selected date Pin
waddie129-Nov-06 6:25
waddie129-Nov-06 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.