Michael R
Michael R

Reputation: 75

Decorate a @Html.Textbox with twitter bootstrap?

I'm trying to decorate some @Html.Textboxes and a button in a contactform with bootstrap, but I still wan´t to use the functionality in razor. But it dosent seem to work to give a normal text razor functionality like @Html.TextAreaFor(x => x.Message, new { rows = "4", cols = "40" }) If i put a type, class or id it stops working. Can I wrap it in a class maybe? Or is there any common way/standard to design a asp.net mvc4 with twitter bootstrap?

Upvotes: 2

Views: 1144

Answers (1)

Abbas Amiri
Abbas Amiri

Reputation: 3204

Normally, using bootstrap in MVC makes views complicated and sometimes out of control, so I recommend you using "TwitterBootstrapMvc" at https://github.com/DmitryEfimenko/TwitterBootstrapMvc. It makes your code and markup clean and easy to debug and change. It is well designed and almost cover all aspects of bootstrap.

"TwitterBootstrapMvc" at http://www.codeproject.com/Articles/570762/TwitterBootstrapMvc would be helpful to learn how to use it.

Upvotes: 2

Related Questions