0

I am first time trying on ASP.NET MVC3 , defined the model (C#) and generated the controllers and views Views is using HTML Helpers . How to change the textbox , textarea length ( ie HTML attributes) .?

1 Answer 1

1

You can specify htmlAtrributes (object) parameter in in the following manner to specify html attributes for the text box.

@Html.TextBoxFor(model => model.SomeProperty, new { @class = "someclass", width= "yourvalue" })
Sign up to request clarification or add additional context in comments.

1 Comment

Where i can found the documentation regd. this?

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.