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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
.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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.