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

  • Thread starter Thread starter Donal McWeeney
  • Start date Start date
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
 
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?
 
It automatically generates a unique id - the ClientId property - for all
controls on the page. It could use this value.

Donal
 
Back
Top