C
Comcast
Newbie to VS.NET so hopefully this is a simple problem ....
I'm desiging a multipage site that has a common banner along the top and
navigation controls down the left side so I read that the thing to do is
have a main.aspx file with the common areas "static" and then have a
PlaceHolder control that you keep switching out webuser controls from
depending upon the state.
So I created my first webuser control, loginForm.ascx. and wrote a
code-behind event handler in the loginForm.ascx.vb to handle the login
button.
In main.aspx I do PlaceHolder.Controls.Add(LoadControl("loginForm.ascx")
to bring in the login form. But, when I click the login button, the button
handler event doesn't break in the debugger and it just seems that nothing
in the loginForm.ascx.vb code behind gets called .... The debugger breaks
next in the OnLoad event of main.aspx.
How do I get the event to fire in the loginForm.ascx.vb !??!
Any thoughts/help would be greatly appreciated. Any suggested web sites,
etc for this type of development would also be appreciated, because again,
newbie here.
Thanks,
Patrick
I'm desiging a multipage site that has a common banner along the top and
navigation controls down the left side so I read that the thing to do is
have a main.aspx file with the common areas "static" and then have a
PlaceHolder control that you keep switching out webuser controls from
depending upon the state.
So I created my first webuser control, loginForm.ascx. and wrote a
code-behind event handler in the loginForm.ascx.vb to handle the login
button.
In main.aspx I do PlaceHolder.Controls.Add(LoadControl("loginForm.ascx")
to bring in the login form. But, when I click the login button, the button
handler event doesn't break in the debugger and it just seems that nothing
in the loginForm.ascx.vb code behind gets called .... The debugger breaks
next in the OnLoad event of main.aspx.
How do I get the event to fire in the loginForm.ascx.vb !??!
Any thoughts/help would be greatly appreciated. Any suggested web sites,
etc for this type of development would also be appreciated, because again,
newbie here.
Thanks,
Patrick