Click here to Skip to main content
15,914,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: capture pre post back state Pin
Not Active18-Oct-09 3:19
mentorNot Active18-Oct-09 3:19 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 4:28
professionalJimmyRopes18-Oct-09 4:28 
GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 6:09
mentorNot Active18-Oct-09 6:09 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 6:13
professionalJimmyRopes18-Oct-09 6:13 
GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 6:19
mentorNot Active18-Oct-09 6:19 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 8:36
professionalJimmyRopes18-Oct-09 8:36 
GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 9:14
mentorNot Active18-Oct-09 9:14 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 9:37
professionalJimmyRopes18-Oct-09 9:37 
Mark Nischalke wrote:
Don't be an ass (that's my job)


That is what I was thinking when you said that the drop down box SelectedIndexChanged event will fire when the AutoPostBack is set to false.

It is my experience that in order to get a drop down box to fire an event you must set the AutoPostBack event to true. Do you have evidence that it will fire without the AutoPostBack being set to true? I think not, but I was willing to overlook that because I wanted to see if you had any other suggestions.

Instead you responded "Have you tried it or are you just theorizing?". Who is being the ass there?

I know you don't know what my experience level is so I told you. That way you wouldn't assume I am a new comer to the field or do not know how to test implementations before asking for help when I run out of options at the time. Your response asking me "Have you tried it or are you just theorizing?" smacked of arrogance.

A look at your profile reveals that you are undoubtedly good at taking tests but that just means that you are good at taking tests, nothing more.

I gain my knowledge the old fashioned way, through empirical (unit) testing. I know it has fallen out of favor these days, probably because it takes a lot of work.

Mark Nischalke wrote:
One way to handle this is to package your webpart as a user control. Some like this approach when the control has more interactive elements such as this.


In my original post I mentioned that it was a SharePoint Web Part. This code is published as a user control that is included on the page in an edit zone.

I override the CreatChildControls, RenderControls and OnLoad Page events, as well as setting some control events. I have logged essential information from each of these events so I will know know what is going on at each stage of rendering.

If you have any examples of capturing the state of the drop down control prior to post back please paste a code snippet in a reply and where in the code (which event) to use it.

Thank you for your assistance. I am not interested in speculating about how things should work, but would rather see a working example and where it should be executed in the rendering process.

I have also been reading about the order of UnLoad events; Control UnLoad events followed by Page UnLoad event which does hold some promise.

At this point I would just be speculating about it working until I get to work tomorrow and try some empirical testing.

PS - I have looked into the documentation about IPostBackDataHandler and IPostBackEventHandler. Thanks for the suggestion. It is not really clear where this code should reside which is typical of MSDN. If you have a working model please post a code snippet also.


Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes



GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 10:34
mentorNot Active18-Oct-09 10:34 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 11:03
professionalJimmyRopes18-Oct-09 11:03 
GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 15:36
mentorNot Active18-Oct-09 15:36 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 15:43
professionalJimmyRopes18-Oct-09 15:43 
GeneralRe: capture pre post back state Pin
Not Active18-Oct-09 15:48
mentorNot Active18-Oct-09 15:48 
GeneralRe: capture pre post back state Pin
JimmyRopes18-Oct-09 15:49
professionalJimmyRopes18-Oct-09 15:49 
GeneralRe: capture pre post back state Pin
JimmyRopes21-Oct-09 11:50
professionalJimmyRopes21-Oct-09 11:50 
GeneralRe: capture pre post back state Pin
Not Active21-Oct-09 12:44
mentorNot Active21-Oct-09 12:44 
GeneralRe: capture pre post back state Pin
JimmyRopes21-Oct-09 14:04
professionalJimmyRopes21-Oct-09 14:04 
QuestionAd Rotator Error when using link parameters Pin
Albert8317-Oct-09 20:12
Albert8317-Oct-09 20:12 
AnswerRe: Ad Rotator Error when using link parameters Pin
Vimalsoft(Pty) Ltd18-Oct-09 4:01
professionalVimalsoft(Pty) Ltd18-Oct-09 4:01 
GeneralRe: Ad Rotator Error when using link parameters Pin
Albert8318-Oct-09 5:56
Albert8318-Oct-09 5:56 
GeneralRe: Ad Rotator Error when using link parameters Pin
Vimalsoft(Pty) Ltd18-Oct-09 20:40
professionalVimalsoft(Pty) Ltd18-Oct-09 20:40 
GeneralRe: Ad Rotator Error when using link parameters Pin
Albert8318-Oct-09 20:46
Albert8318-Oct-09 20:46 
Question2 files do not match to each other! Pin
I'm a beginner17-Oct-09 18:03
I'm a beginner17-Oct-09 18:03 
AnswerRe: 2 files do not match to each other! Pin
Abhijit Jana17-Oct-09 23:04
professionalAbhijit Jana17-Oct-09 23:04 
GeneralRe: 2 files do not match to each other! Pin
I'm a beginner19-Oct-09 6:01
I'm a beginner19-Oct-09 6:01 

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.