By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,634 Members | 1,898 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,634 IT Pros & Developers. It's quick & easy.

User and Web Controls

P: n/a
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...
--
Thanks
Regards.
Josema
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> 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
"Josema" <Je******@ocu.org> wrote in message
news:BE**********************************@microsof t.com... 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...
--
Thanks
Regards.
Josema

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.