How to set cssclass plural name for ASP.NET-enabled control?

CSS supports several class names:

<hwc:DropDownList ID="ddlRoomType" runat="server" class="invisible blue" EnableTheming="true" />

Skin file:

<%-- Default dropdown appearance --%>
<asp:DropDownList runat="server" CssClass="dropDownList" AutoPostBack="true"/>

And asp.net theming provides an extra skin and attribute abstraction layer for us. So I'm talking about classic css style and asp.net combo script.

But when it comes to providing the CssClass attribute (or class) manually when you enable asp.net, you have to make a choice that should override the other.

How can we combine manually entered class names with a dynamic class name created using asp.net theming to generate html output, as shown below:

<select id="ctl00_Content_ddlRoomType" class="invisible blue dropDownList">
    <option value="0">- Select Room -</option>
    <option value="9">Single Room</option>
</select>

I cannot find any .net theming class to override to implement another logic. Any ideas? Thank.

+3
1

CSS .

, , . CssClass="+dropDownList", . CssClass.

(, , ) , , CssClass , .

0

Source: https://habr.com/ru/post/1726873/


All Articles