How to get asp.net to write out id for control

D

Donal McWeeney

Hi,

Is there a way to get ASP.NET to render the id attribute for a control
without specifying a value for the id property. ie. have it output the
id=<UniqueId property>

Thanks

Donal
 
J

John Saunders

Donal McWeeney said:
Hi,

Is there a way to get ASP.NET to render the id attribute for a control
without specifying a value for the id property. ie. have it output the
id=<UniqueId property>

If you don't specify an id, how does the control come up with an id to be
rendered?
 
D

Donal McWeeney

It automatically generates a unique id - the ClientId property - for all
controls on the page. It could use this value.

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,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top