D
DeepDiver
If I add a DropDownList Web Control to my Web Form and set
id="DropDownList1", then when I build and execute the page, the ID gets
changed to id="_ctl1_DropDownList1". This breaks my CSS which is tied to the
tag ID. Why does ASP.Net do this? The ID is required to be unique, so I see
no advantage in it getting programmatically modified during the build.
I am using an external stylesheet and don't want to embed the style in the
tag. Is there anyway around this problem?
TIA!
id="DropDownList1", then when I build and execute the page, the ID gets
changed to id="_ctl1_DropDownList1". This breaks my CSS which is tied to the
tag ID. Why does ASP.Net do this? The ID is required to be unique, so I see
no advantage in it getting programmatically modified during the build.
I am using an external stylesheet and don't want to embed the style in the
tag. Is there anyway around this problem?
TIA!