user2848976 user2848976 - 5 months ago 532
CSS Question

Adding style for asp.net drop-down list control using bootstrap v3

I was trying to add style for asp.net drop-down list control using bootstrap 3. But it is not applying. Earlier it worked with bootstrap 2.3.2 without any changes.

Can anybody suggest me a way to do this. Many thanks.

Answer

I would say this would be enough:

<asp:DropDownList runat="server" CssClass="form-control" ID="something" />

Take a look at bootstrap docs and scroll down to the Selects section.

Comments