我正在使用带有Razor视图引擎的MVC 4。在这里,我可以从客户端到服务器端获得价值,但现在我想设置数据库值以绑定受尊重的控件,服务器端到客户端。但是我们怎么能这样做...... ???
@using (Html.BeginForm("Registration", "Home"))
{
@Html.Label("User Name: "); @Html.TextBox("txtUserName","");
@Html.Label("Password: "); @Html.TextBox("txtPassword", "");
@Html.Label("Email ID: "); @Html.TextBox("txtEmailID", "");
@Html.Label("Age: "); @Html.TextBox("txtAge", "");
@Html.Label("Adderss: "); @Html.TextBox("txtAdderss", "");
@Html.Label("Gender: "); @Html.TextBox("txtGender", "");
<input type="button" value="Update" />
}