Set multiple line attribute for html helper textboxfor.

Hi All,
Advance thanks!
Using C#, mvc , bootstrap.
I need a help to set multiple line attribute on text box.

@Html.TextBoxFor(m => m.Other, new { id = "txtOther", @class = "textBoxmulti" })

.textBoxmulti {
            border: 1px solid #e2e2e2;
            background: #fff;
            color: #333;
            font-size: 1.0em;
            margin: 5px 0 6px 0;
            padding: 5px;
            width: 800px;
            height: 40px;

            [Display(Name = "Other Changes")]
            public string Other { get; set; }

Still not accepting new line.

Kind regards,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technology NinjaCommented:
Hi poojasureshkumar,

Instead of
@Html.TextBoxFor(m => m.Other, new { id = "txtOther", @class = "textBoxmulti" })

Open in new window

@Html.TextAreaFor(m => m.Other, new { id = "txtOther", @class = "textBoxmulti" })

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
poojasureshkumarAuthor Commented:
hi Chinmay,
not working .

Kind regards,
poojasureshkumarAuthor Commented:
Thanks Chinmay:)
Chinmay PatelChief Technology NinjaCommented:
Glad it worked out Pooja. So what was the issue when it did not work for the first time? :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.