Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Getting id of composite child controls

Reply
Thread Tools

Getting id of composite child controls

 
 
Chris Kennedy
Guest
Posts: n/a
 
      06-14-2004
I can't seem to get the id of the child controls of my composite control. I
can get the unique id but the id when I try to access it via the controls
collection comes back null. Do I need to add a form tag within the control
rather than on aspx parent page. Any ideas? Regards, Chris.


 
Reply With Quote
 
 
 
 
Zafar Iqbal
Guest
Posts: n/a
 
      06-16-2004
Chris Kennedy used his keyboard to write :
> I can't seem to get the id of the child controls of my composite control. I
> can get the unique id but the id when I try to access it via the controls
> collection comes back null. Do I need to add a form tag within the control
> rather than on aspx parent page. Any ideas? Regards, Chris.


If you are making a composite control, which will have other child
control in it, then you need to implement INamingContainer interface.
This interface provide the facility to properly provide ids to the
child controls according to the heirarchical rules used by ASP.NET

Regards
Zafar Iqbal

--
This is an automatic signature of MesNews.
Site : http://mesnews.no-ip.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! Child controls of child controls not visible to web app lisa@starways.net ASP .Net Building Controls 0 05-05-2005 09:14 PM
Composite vs non composite Controls Mike ASP .Net Web Controls 4 03-11-2005 05:47 AM
Possible to create a composite control that has a child control that is a validator that validates the composite control itself? Jonathan Eric Miller ASP .Net Building Controls 2 07-22-2004 10:58 PM
Composite control with dynamic composite controls sleigh ASP .Net 1 02-12-2004 06:24 PM
Child controls in Composite Controls not firing events David Boike ASP .Net Web Controls 0 08-07-2003 05:39 PM



Advertisments