Click here to Skip to main content
15,879,535 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPartial postback and update panel problem Pin
Tridip Bhattacharjee4-Dec-10 7:30
professionalTridip Bhattacharjee4-Dec-10 7:30 
AnswerRe: Partial postback and update panel problem Pin
Sandeep Mewara4-Dec-10 7:47
mveSandeep Mewara4-Dec-10 7:47 
GeneralRe: Partial postback and update panel problem Pin
Tridip Bhattacharjee5-Dec-10 4:55
professionalTridip Bhattacharjee5-Dec-10 4:55 
GeneralRe: Partial postback and update panel problem Pin
Sandeep Mewara5-Dec-10 4:55
mveSandeep Mewara5-Dec-10 4:55 
QuestionConfusion regarding c# property Pin
Tridip Bhattacharjee3-Dec-10 23:00
professionalTridip Bhattacharjee3-Dec-10 23:00 
AnswerRe: Confusion regarding c# property Pin
Keith Barrow3-Dec-10 23:55
professionalKeith Barrow3-Dec-10 23:55 
GeneralRe: Confusion regarding c# property Pin
Tridip Bhattacharjee4-Dec-10 4:34
professionalTridip Bhattacharjee4-Dec-10 4:34 
GeneralRe: Confusion regarding c# property Pin
Keith Barrow4-Dec-10 5:26
professionalKeith Barrow4-Dec-10 5:26 
Firstly, there is no need to re-iterate my code, it just makes your post long. You also need really to style up your code block if you have any, posts are difficult to read otherwise just highlight the code and click the button that looks like
code block

above the text

Tridip Bhattacharjee wrote:
Names.Add(Guid.NewGuid(), txtNewName.Text)


This line does not add to the ViewState directly. it adds to the Dictionary object added in this
code:

var names = new Dictionary<Guid, string>{ /*..SNIP..*/};
ViewState.Add("Names", names);


You access the object you added through the property property, which wrappers up the viewstate calls.

Honestly,you need to try out my code first, it's simpler (it won't do what you want, but it demonstrates what is going on much better) set breakpoints and see what is happening. The Dictionary within viewstate example you have found is confusing because, if the reader hasn't got to grips with viewstate, he/she needs to figure out whether the "Add" code is adding to the ViewState Dictionary (it isn't), or the Dictionary item inside the viewstate (it is).

QuestionJQuery unable to find controls on a page [modified] Pin
AndyASPVB3-Dec-10 22:13
AndyASPVB3-Dec-10 22:13 
AnswerRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 2:06
mentorNot Active4-Dec-10 2:06 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB4-Dec-10 3:13
AndyASPVB4-Dec-10 3:13 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 3:35
mentorNot Active4-Dec-10 3:35 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB4-Dec-10 3:43
AndyASPVB4-Dec-10 3:43 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 5:46
mentorNot Active4-Dec-10 5:46 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB6-Dec-10 10:49
AndyASPVB6-Dec-10 10:49 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active6-Dec-10 13:27
mentorNot Active6-Dec-10 13:27 
QuestionASP.Net Newby Question On ListView Pin
Kevin Marois3-Dec-10 7:32
professionalKevin Marois3-Dec-10 7:32 
AnswerRe: ASP.Net Newby Question On ListView Pin
Not Active3-Dec-10 12:36
mentorNot Active3-Dec-10 12:36 
Questionregarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 6:31
professionalTridip Bhattacharjee3-Dec-10 6:31 
AnswerRe: regarding VS2008 IDE Pin
Brij3-Dec-10 7:42
mentorBrij3-Dec-10 7:42 
GeneralRe: regarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 23:05
professionalTridip Bhattacharjee3-Dec-10 23:05 
GeneralRe: regarding VS2008 IDE Pin
Brij4-Dec-10 5:14
mentorBrij4-Dec-10 5:14 
QuestionClear session after redirect Pin
Hanzaplast3-Dec-10 5:28
Hanzaplast3-Dec-10 5:28 
AnswerRe: Clear session after redirect Pin
Brij3-Dec-10 6:39
mentorBrij3-Dec-10 6:39 
AnswerRe: Clear session after redirect Pin
fjdiewornncalwe3-Dec-10 6:44
professionalfjdiewornncalwe3-Dec-10 6:44 

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.