User and Web Controls

G

Guest

Hi,

Im starting to do the navigation of a portal, and for it, im using
usercontrols....

Actually i have a user control in the top of the page that has some menus
(contact, register, etc...)

Depending of the menu that the user will clik i make a LoadControl to the
specific user control. i start to see some problems following this way...

If the control to load doesnt have any controls that makes post-back (a
button, or any control with autopostback=true) it works, cause when i make
click in a menu, i show the user control, and that's all.

But if the user control for instance its a form to register a user here
comes the problem, cause when i click the button the control is loaded, but
if i fill the form to register, and click in the button of this form, this
user control dissapear...

I know the reason cause i make the LoadControl in the Onlclick Method of the
menu, and if i click in in the button that is in the user control of the
register this control its not loaded cause the program dont go throught the
Onclick Method of the menu...

How could i solve it?

I Hope explain my self correctly...
 
A

Alvin Bruney [MVP]

I Hope explain my self correctly...

Not really. Can you try again.
But if the user control for instance its a form to register a user here
comes the problem, cause when i click the button the control is loaded,
but
if i fill the form to register, and click in the button of this form, this
user control dissapear...
is that the user control on the main form you are referring to?
I know the reason cause i make the LoadControl in the Onlclick Method of
the
menu, and if i click in in the button that is in the user control of the
register this control its not loaded cause the program dont go throught
the
Onclick Method of the menu...
I didn't get this part
--
Regards,
Alvin Bruney

Coming this month
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top