In MVC3, you can set width as follows:
@Html.TextBoxFor(c => c.PropertyName, new { style = "width: 500px;" })
More Related Contents:
- Making a Simple Ajax call to controller in asp.net mvc
- Asp.Net MVC 2 – Bind a model’s property to a different named value
- Need an ASP.NET MVC long running process with user feedback
- MVC MapPageRoute and ActionLink
- How to write code that runs once
- How do I get the contents of a JSON file I added in the StartUp method to use it in one of my actions?
- html dropdownlist to controller
- Download file of any type in Asp.Net MVC using FileResult?
- Why does the EF 6 tutorial use asynchronous calls?
- Pass array to mvc Action via AJAX
- C# 6.0 Features Not Working with Visual Studio 2015
- Display image from database in asp mvc
- Impersonation in ASP.NET MVC
- Implementing Audit Log / Change History with MVC & Entity Framework
- Putting HTML inside Html.ActionLink(), plus No Link Text?
- Get error message if ModelState.IsValid fails?
- The entity type ‘Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin’ requires a key to be defined
- How to use npm with ASP.NET Core
- Rendering Partial Views using ajax
- How can I change IIS Express port for a site
- How to figure out which key of ModelState has error
- mvc Html.BeginForm different URL schema
- How to I apply filter while paginating in Asp.net MVC and entity Framework?
- Asp.Net MVC3: Set custom IServiceProvider in ValidationContext so validators can resolve services
- Async PartialView causes “HttpServerUtility.Execute blocked…” exception
- How to add ASP.NET Membership Provider in a Empty MVC 4 Project Template?
- How to use SqlClient in ASP.NET Core?
- How can I maintain ModelState with RedirectToAction?
- JSONResult to String
- what are the URLs for in claim-types