Back End/🌈 ASP.NET
HtmlHelper Class
James Wetzel
2022. 6. 20. 10:26
Definition
Supports the rendering of HTML controls in a view.
BeginForm & EndForm
@{ Html.BeginForm("WhiteIpRequest", "Login", FormMethod.Post); }
<input type="text" name="ip_address" id="ip_address" value="@ViewBag.ClientIp" />
<input type="submit" value="IP 권한 신청" />
@{ Html.EndForm(); }
TextBox
@{ Html.BeginForm("WhiteIpRequest", "Login", FormMethod.Post); }
@Html.TextBox("ip_address", (Object)ViewBag.ClientIp)
<input type="submit" value="IP 권한 신청" />
@{ Html.EndForm(); }
728x90
반응형