Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I get horribly long random IDs created when umbraco renders the .NET control - how can I change this?
I am using CSS based on ID and so the control isnt rendering properly...
The workaround I guess is to use CSS classes instead?
Comment author was deleted
Yes use css classes or add your css on the page and so you use <%= mycontrolid.ClientID %>
Can you please explain the <%= mycontrolid.ClientID %> option?
This is standard .NET.
There is an internal .NET reference for each control (the auto-generated one) and there is a 'clientID' which is the one in the DOM, hence this is the one to used when referencing via Javascript or CSS.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
.NET Controls and IDs
I get horribly long random IDs created when umbraco renders the .NET control - how can I change this?
I am using CSS based on ID and so the control isnt rendering properly...
The workaround I guess is to use CSS classes instead?
Comment author was deleted
Yes use css classes or add your css on the page and so you use <%= mycontrolid.ClientID %>
Can you please explain the <%= mycontrolid.ClientID %> option?
This is standard .NET.
There is an internal .NET reference for each control (the auto-generated one) and there is a 'clientID' which is the one in the DOM, hence this is the one to used when referencing via Javascript or CSS.
is working on a reply...