473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

User and Web Controls

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
1 1264
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
8
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem...
3
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.