VS2003 - Selection cleared when debugging. Oddity/Bug?
-
Hi all. To make a long story short: I have a user control (Parent) with another user control (Child) on it. The Child-control consist of some ListBoxes which update each other on selections. The Parent-control consists of a lot of stuff, amongst other things some buttons which are ment to get the Child-control's selections and do some stuff with it - so far so good. When pressing the buttons I then access the Child-control and the relevant ListBox and extract the selectedValue from this ListBox. However, I have noticed when I debug - set a break point - in my Parent-control, it will remove the the selection in the listboxes placed on the child-control. This means that after my breakpoint in my Parent-Control, the Child-Controls listbox have been had its selection cleared, and thus I can't extract the selectedValue (for instance). And also after the page is fully rendered, the selection is also not noticable on the page anymore - every trace of this selection has been removed. When I do not set this break point, everything runs fine and my selection is still kept intact, and I can extract the selectedValue. I tested it, and it didn't matter where I set this breakpoint in my Parent-Control. The selection was cleared for all code being run after my breakpoint, and including the break point. If I placed the breakpoint in PageLoad, Button Clicked event and PreRender - the result was the same. Selection was cleared afterwards and including the line with the break. Have anybody heard of something similar? Have I broken something - or have I stumpled upon a bug of sorts? --------------------------- 127.0.0.1 - Sweet 127.0.0.1