unique id in control framework

D

Donal McWeeney

Hi,

I'm working within a control framework and am trying to figure out the best
method to get a unique id assigned to a control I am dynamically creating.
Any ideas?

When is a ClientId populated - is it when the control is added to the
Controls collection?

Thanks

Donal
 
D

Donal McWeeney

To provide some more info which may jog some thoughts...

I have a method that generates a Label control. That Label control contains
the following:

1 x HtmlImage control (has onload attribute specified)
1 x Image control
1 x HyperLink control

The HtmlImage control links to a activex control and its id must be unique
within the scope of the page, else the activex control does not work.

I could assign the HtmlImage ID a guid but that seems a bit or an overhead
for something that should be quite simple to do.

Thanks

Donal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top