10

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.

2 Answers 2

38

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.

Sign up to request clarification or add additional context in comments.

1 Comment

this answer is also valid for bootstrap 4
1

You can use this and change btn whatever you want: <asp:DropDownList Width="100%" CssClass="btn btn-default btn-sm" ID="DPCID" runat="server"/>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.