473,473 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

INamingContainer Issue

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

Similar topics

0
by: Alex Stevens | last post by:
Hi All, I have built a composite user web control and I've NOT implemented INamingContainer. It does implement IPostBackDataHandler to retrieve information entered into the controls when the...
10
by: Natan | last post by:
Is there any possibility to make an ASCX be loaded in an object that does not implement INamingContainer, but mantain the funcionality of events and etc? I know i can`t do this using the current...
3
by: gemel | last post by:
Interface definitions do no not contain implementation, only signtures. That is there real purpose. Here thow we have an Inteface which does not have any implementation code but it has to be...
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.