S
shapper
Hello,
When I use a master page all ID's are renamed to ct100_MyControl.
Consider I have a control which ID is not change on the client.
Consider that control would generate <a> tags on the client inside a
div where ID = "MyControl" and Class="MyCSS".
Well, I could redifine the <a> tags simply by using the following CSS:
div#pMyControl a, div#pMyControl a:link, div#pMyControl a:visited
{
color: #404040;
text-decoration: none;
}
The problem is that the control ID is changed to div#ct100_pMyControl.
Yes, I know: I could use ct100_pMyControl in my CSS code.
However this seems wrong to do and forces me to check all client ID's
after running the web site.
Could someone tell me what should be the solution for this Asp.Net 2.0
problem?
Thanks,
Miguel
When I use a master page all ID's are renamed to ct100_MyControl.
Consider I have a control which ID is not change on the client.
Consider that control would generate <a> tags on the client inside a
div where ID = "MyControl" and Class="MyCSS".
Well, I could redifine the <a> tags simply by using the following CSS:
div#pMyControl a, div#pMyControl a:link, div#pMyControl a:visited
{
color: #404040;
text-decoration: none;
}
The problem is that the control ID is changed to div#ct100_pMyControl.
Yes, I know: I could use ct100_pMyControl in my CSS code.
However this seems wrong to do and forces me to check all client ID's
after running the web site.
Could someone tell me what should be the solution for this Asp.Net 2.0
problem?
Thanks,
Miguel