c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
asp.net MVC

How to apply css class for html textbox asp.net MVC?

| | Html , MVC

In this article I will show you how to apply html TextBoxFor class in asp.net mvc Razor view. The simplest way is,

   @Html.TextBoxFor(model => model.Title, new { Class= "form-control" }) 

Here I applied bootstrap css class for textbox(TextBoxFor) in form.