Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Usercontrols 1

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi,

I have a contacts system where by I have the following :

1. A consuming aspx page

2. Within the consuming page a number of usercontrols :

2.1 Address (usercontrol)
2.2 Bank Details (usercontrol)

The problem I have is that when I am in Bank Details usercontrol I am submitting data to the database, but some elements of data are contained on the Address usercontrol.

How can I get to to this.

Thanks in advance.


 
Yes I know that - but I want to whilst in the code behind of the band details usercontrol to access a property on the Address usercontrol - is this possible ?
 
Yes, via the method I suggested. Your aspx page is the common link between the two user controls so you can get a reference to the page, then from there find your other user control.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Ar right - do you have a code sample of that ? I've tried something like that before but never got it working ?
 
Yep I see how that works, this is where I have got stuck before:

1. If you reference (FINDCONTROL) an object in the parent page like a html button, you can because you can cast it to that type.

The problem is, the unique usercontrol id doesnot appear in intellisence, so therefore you can't cast it to that type and then not be able to manipulate any properties. ???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top