基本控件標簽
① 文本框
@Html.TextBox("txtname", "電影名稱", new { @class = "form-control" });
@Html.TextBoxFor(model=>model.logIp, new { @class = "form-control" });
效果圖

② 多行文本框
@Html.TextArea("txtnameare", "電影劇情", new { @class = "form-control" });
@Html.TextAreaFor(model=>model.logIp, new { @class = "form-control" });

③ 下拉框
@Html.DropDownList("ddl_type", ViewBag.list as SelectList, "請選擇類型", new { @class = "form-control" })
@Html.DropDownListFor(model=>model.logIp, ViewBag.list as SelectList, "請選擇",new { @class= "form-control" })

④ 超鏈接a標簽
<a href="@Url.Action("index","more_movie")">更多詳情</a>

⑤ 單選框
@Html.RadioButton("radio_aa", true);
@Html.RadioButtonFor(model=>model.logIp, new { @class = "form-control" });

⑥ 復選框
@Html.CheckBox("chk_one", true)
@Html.CheckBoxFor(model=> model.AddCustomer,new { @class = "form-control" })

⑦ 按鈕
<button class="btn btn-default" type="submit" onclick="@Url.Action("post_Index","Index")">提交</button>
⑧ 隱藏控件
@Html.Hidden("hd_id", "0");
@Html.HiddenFor(model=>model.id);

