Daniel K Rudolf_mag
Daniel K Rudolf_mag

Reputation: 287

Change syntax Html.TextBox to input in MVC

Is it possible to change this:

@(Html.TextBox("q", Model.Search.FreeSearc))

to this:

<input type="text"... />

thanks...

Upvotes: 0

Views: 71

Answers (1)

Neel
Neel

Reputation: 11731

You can try below code :-

<input id="q" name="FreeSearc" type="text" value = "@Model.Search.FreeSearc" />

Upvotes: 1

Related Questions