Click here to Skip to main content
15,881,898 members

Comments by NarVish (Top 4 by date)

NarVish 2-Jan-15 3:22am View    
No. the values of user's first name and last name from the controller should go to the form
NarVish 2-Jan-15 3:11am View    
signature is controller name
NarVish 2-Jan-15 3:05am View    
Because of network issues, I couldn't able to post this comment immediately. I removed ajax call and my action link is @Html.ActionLink("Search", "GetDetails", "signature", null, new { id = "btnSearch"}). HTTPPost method didn't get invoked in controller. For testing purpose, I created HTTPGet method with the same name, it got invoked
NarVish 2-Jan-15 0:23am View    
I tried with POST in ajax and [HTTPPost] attribute on the action method. This time I'm not getting values at all. My form is like this below.
@using (Html.BeginForm("Registration", "signature", FormMethod.Post, new { id = "frmTest" }))
{
div id="divNames">
@Html.TextBoxFor(model => model.Name, new { id = "txtFirstName", maxlength = "30" })
@Html.TextBoxFor(model => model.LastName, new { id = "txtLastName", maxlength = "30" })</div>
@Html.ActionLink("Search", "", "", null, new { id = "btnSearch")
}