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

INamingContainer Issue

P: n/a
With INamingContainer ChildControl UniqueIDs or ClientIDs are Represented
similar to the following:

ParentControlID:childControlID

Now my problem is the colon ":" used to sperate the Parent and child IDs.
Javascript appears to view the colon as delimiter and treats it accordingly.
I'm writing a control that needs to use the returned id's and passes it to
the javascript function. My question:

Is there a way to change the delimiter between the parent and child control
IDs?
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The ClientID property will return name with underscores instead of colons.

"Sam Samnah" <we**********@terraquest123.ca> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
With INamingContainer ChildControl UniqueIDs or ClientIDs are Represented
similar to the following:

ParentControlID:childControlID

Now my problem is the colon ":" used to sperate the Parent and child IDs.
Javascript appears to view the colon as delimiter and treats it
accordingly. I'm writing a control that needs to use the returned id's and
passes it to the javascript function. My question:

Is there a way to change the delimiter between the parent and child
control IDs?

Nov 19 '05 #2

P: n/a
I tried using ClientID but the control name still returns
ParentControlID:_childcontrol id

I think INamingContainer arbitrarily sets the id whether it is UniqueID or
ClientID. Is there a method in INamingContainer I can override?

"Steven Berkovitz" <mb****@community.nospam> wrote in message
news:O3**************@TK2MSFTNGP14.phx.gbl...
The ClientID property will return name with underscores instead of colons.

"Sam Samnah" <we**********@terraquest123.ca> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
With INamingContainer ChildControl UniqueIDs or ClientIDs are Represented
similar to the following:

ParentControlID:childControlID

Now my problem is the colon ":" used to sperate the Parent and child IDs.
Javascript appears to view the colon as delimiter and treats it
accordingly. I'm writing a control that needs to use the returned id's
and passes it to the javascript function. My question:

Is there a way to change the delimiter between the parent and child
control IDs?


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.