N
~~~ .NET Ed ~~~
I have a problem (don't we all?). I have a web form with multiple modules,
some of these modules have an ASP.NET (server run) button.
OK, now I have UserControlX which has one such button (say Login). In that
user control I defined both the Command and Click events for the button and
placed a break point on it (in addition to traces). This user control is
then included in the main form within the Form element/tags. Both the user
control and the button therein have EnableViewState set.
Then on the displayed web form I press the button contained in the module
and NOTHING HAPPENS!, no break point (yes, it is in Debug mode rather than
Release). I see the Page_Load being fired initially but there is never a
post back, nor there is a firing of the button's events of the user control.
I must be missing something simple but what is it?
some of these modules have an ASP.NET (server run) button.
OK, now I have UserControlX which has one such button (say Login). In that
user control I defined both the Command and Click events for the button and
placed a break point on it (in addition to traces). This user control is
then included in the main form within the Form element/tags. Both the user
control and the button therein have EnableViewState set.
Then on the displayed web form I press the button contained in the module
and NOTHING HAPPENS!, no break point (yes, it is in Debug mode rather than
Release). I see the Page_Load being fired initially but there is never a
post back, nor there is a firing of the button's events of the user control.
I must be missing something simple but what is it?