HtmlHelper
Check box Html.CheckBox("myCheckbox", false)
Output:
<input id="myCheckbox" name="myCheckbox" type="checkbox" value="true" />
<input name="myCheckbox" type="hidden" value="false" />
Hidden field Html.Hidden("myHidden", "val")
Output:
<input id="myHidden" name="myHidden" type="hidden" value="val" />
Radio button Html.RadioButton("myRadiobutton", "val", true)
Output:
<input checked="checked" id="myRadiobutton" name="myRadiobutton" type="radio" value="val" />
Password Html.Password("myPassword", "val")
Output:
<input id="myPassword" name="myPassword" type="password" value="val" />
Text area Html.TextArea("myTextarea", "val", 5, 20, null)
Output:
<textarea cols="20" id="myTextarea" name="myTextarea" rows="5">
val
</textarea>
Text box Html.TextBox("myTextbox", "val")
Output:
<input id="myTextbox" name="myTextbox" type="text" value="val" />