How to get these values front end using asp.net mvc
- by kumar
hello friends,
<div>
<label>
Date:
<span><input type="text" id="date" /></span>
<%--<%=Html.EditorFor(model=>model.Date) %>--%> // Should I use this as Input type?
</label>
<label>
Number#:
<%=Html.TextBox("Number", ViewData["inq"] ?? "")%>
</label>
<label>Comment</label>
<span>
<%=Html.TextArea("value")%>
<%=Html.ValidationMessage("value")%>
</span>
</div>
I am trying to get these three fields on the screen while user enters I am retreving the user enter data on front end.. when I am debugging I am not seeing these fields..
On the view I am using beginForm
<% using (Html.BeginForm("Update", "Home", FormMethod.Post, new { @id = "id" }))
{ %>
my method..
public JsonResult Update(StudentInfo info)
{
Update///
return Json(Status.ToString());
}
when I see in info I am not getting these three fields..
can any one help me out thanks