I have a user control(UC1) with an asp:Textbox and
asp:RequiredFieldValidator controls. I also have another user
control(UC2) with an asp:Button control. The Button user control
raises a bubble event to be captured in the parent page.
Now I created another user control(UC3) with the above two user
The bubble event mechanism works fine.
Issue 1) Debug mode:
When I click on the Button(UC2), the Page.IsValid property returns
True until the end of the Page_Load event of UC2. The next event that
I have the debug symbol at is my custom event that I use to raise the
bubble event. When the control comes to this point the Page.IsValid
returns False. Why is it happening and what am I missing here?
Issue 2) Debug mode:
I noticed that each event triggers twice. Because of this behavior, I
have to use flags to avoid multiple executions of the code. Am I not
doing the right way or is there any other solution for this?
I appreciate your help.