Part of my job is re-factoring outdated asp.net code.
Most people would be like, UGH. I’m like YAY because I get to take this old really ugly thing and give it new life…I get to fix it! This means, of course, using my most favorite developer tool- Bootstrap!
Sometimes, though, it’s tricky to figure out just where to add in the classes. Just in case you have to do it too, here’s something I figured out today.
On a regular HTML5 form, you add the css class to the select, like this:
In .net however, you add the form-control class to the DropDownList element instead of the Panel holding the DropDownList: