473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=tr ue) 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 1277
> 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.o rg> wrote in message
news:BE******** *************** ***********@mic rosoft.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=tr ue) 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
2130
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 to programming, but I am new to ASP.NET and Web application design in general... loved the concept of user controls and dynamically adding them to a page. So what I wound up with was an application that dynamically loads two user controls directly...
6
3369
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 the usual stuff of recreating the usercontrol in the Page Init event. The 'failure' sequence is as follows: - select web form button to display the user control - select user control button, event fires - select web form button to display...
3
2227
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 some reason I keep getting the error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
8
3176
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 I'm having is that the partial class signature in my projectDetails.ascx.cs file looks like this: public partial class ProjectDetailsControl<TEntryServiceProvider: UserControl, INamingContainer where TEntryServiceProvider : IEntryServiceProvider...
3
2790
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 DirectoryEntry("WinNT://us.ups.com") Dim DOMUSR As DirectoryEntry = DOM.Children.Find("USERID", "user") Dim LCLGRP As DirectoryEntry = LCL.Children.Find("LOCAL_GROUP", "group")
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.