ASP.NET MVC Interface Controls - Textbox -
TextMode property


TextMode="SingleLine"


TextMode="Password"


TextMode="MultiLine"



Use the TextMode property to specify whether the control is displayed as a single-line, multi-line or password text box.
C#
Html.Obout(new OboutTextBox("txt1") { TextMode = TextBoxMode.SingleLine })
Html.Obout(new OboutTextBox("txt1") { TextMode = TextBoxMode.Password })
Html.Obout(new OboutTextBox("txt3") { TextMode = TextBoxMode.MultiLine})