Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 18, 2012 11:28 PM by stratoblue
Member
5 Points
24 Posts
Dec 18, 2012 04:41 PM|LINK
I have the following in my view
<tr> <td> @Html.TextAreaFor(model => model.Notes) </td> </tr>
How do I specify the size of the text area? A simple sample code would be appreciated. Thanks.
All-Star
112168 Points
18255 Posts
Moderator
Dec 18, 2012 05:25 PM|LINK
Contributor
2777 Points
1161 Posts
Dec 18, 2012 07:23 PM|LINK
You do it by adding a:
@Html.TextAreaFor( model => model.Notes, new { style="width:###; height:###" } )
Dec 18, 2012 11:28 PM|LINK
Thanks. The sample code was exactly what I was looking for.
stratoblue
Member
5 Points
24 Posts
Newbie Html>TextareaFor question
Dec 18, 2012 04:41 PM|LINK
I have the following in my view
<tr> <td> @Html.TextAreaFor(model => model.Notes) </td> </tr>How do I specify the size of the text area? A simple sample code would be appreciated. Thanks.
MetalAsp.Net
All-Star
112168 Points
18255 Posts
Moderator
Re: Newbie Html>TextareaFor question
Dec 18, 2012 05:25 PM|LINK
eric2820
Contributor
2777 Points
1161 Posts
Re: Newbie Html>TextareaFor question
Dec 18, 2012 07:23 PM|LINK
You do it by adding a:
@Html.TextAreaFor( model => model.Notes, new { style="width:###; height:###" } )
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.
stratoblue
Member
5 Points
24 Posts
Re: Newbie Html>TextareaFor question
Dec 18, 2012 11:28 PM|LINK
Thanks. The sample code was exactly what I was looking for.