Web Controls Question

  • Thread starter Thread starter Hunter
  • Start date Start date
H

Hunter

Hi,

Is there an equivelent in ASP.Net WebForm controls property to WinForm
controls tag property? I need to hold a value for each control and it
cannot be in the id.

Thanks
 
You can always add your own attribute:

MyControl.Attributes["myAttribute"]="stringValue";
 
Thanks for the reply. I need to do this at design time instead of runtime
so can I add it manually in the source? I get a warning however it works.
I know I can add it to the page load event but rather not.

Thanks

Eliyahu Goldin said:
You can always add your own attribute:

MyControl.Attributes["myAttribute"]="stringValue";

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Hunter said:
Hi,

Is there an equivelent in ASP.Net WebForm controls property to WinForm
controls tag property? I need to hold a value for each control and it
cannot be in the id.

Thanks
 
Back
Top