Helper HTML Element
Html.CheckBox <input type="checkbox" />
Html.DropDownList <select></select>
Html.Hidden <input type="hidden" />
Html.Label <label for="" />
Html.ListBox <select></select> or <select multiple></select>
Html.Password <input type="password" />
Html.Radio <input type="radio" />
Html.TextArea <textarea></textarea>
Html.TextBox <input type="text" />
@Html.Action("Action ismi","Controller ismi")
@Html.ActionLink("Link yazısı","Action ismi","Controller ismi")
@Html.BeginForm("Action ismi","Controller ismi")
@Html.BeginForm("YeniUyelik", "Uyelik")
{
@Html.Label("Ad : ")
@Html.TextBox("ad")
<br />
@Html.CheckBox("Onaylı", true)
}
@Html.EndForm()
@Html.DropDownList("İsim","Liste")
@Html.DropDownList("sehirler", new[] { new SelectListItem { Text = "İstanbul", Value = "34" }, new SelectListItem { Text = "Ankara", Value = "10" }, new SelectListItem { Text = "İzmir", Value = "35" } })
@Html.Hidden("İsim","Değer")
@Html.Hidden("hiddenId","5")
@Html.Label("Tanımlayıcı eleman","Metin")
@Html.Label("label isim","İsim : ")
@Html.ListBox("İsim","Liste")
@Html.ListBox("sehirler", new[] { new SelectListItem { Text = "İstanbul", Value = "34" }, new SelectListItem { Text = "Ankara", Value = "10" }, new SelectListItem { Text = "İzmir", Value = "35" } })
@Html.Password("İsim","Şifre")
@Html.Password("paswSifre","123465")
@Html.RadioButton("İsim","Değer","İşaretli mi")
@Html.RadioButton("rdbErkek","erkek",true)
@Html.TextArea("İsim","Değer",new{cols="Sütun sayısı",rows="Satır sayısı"})
@Html.TextArea("txtAreaAdres", "İstanbul", new { cols=70,rows=10})
@Html.TextBox("İsim","Değer")
@Html.TextBox("txtIsim","Abdurrahman")
@Html.ValidationMessage("Model","Hata mesajı")
@Html.ValidationMessage("kullanici","İsim boş geçilemez")