How to get these values front end using asp.net mvc

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-05-24T15:18:42Z Indexed on 2010/05/24 15:21 UTC
Read the original article Hit count: 311

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc