forum

Home / DeveloperSection / Forums / Post data from view to controller using ajax

Post data from view to controller using ajax

Ailsa Singh197822-Jun-2017

I want to post data from view to controller using ajax.

I am novice in Ajax. Please help me.

This is my View code.

  @using (Html.BeginForm("SignIn","Home",FormMethod.Post))
        {
           <fieldset>
    <legend>Login:</legend>
    User Name: @Html.TextBoxFor(x=>x.UserName)<br>
    Password: @Html.PasswordFor(x=>x.Password)<br>
 <inputtype="submit"value="Login"/>@ViewBag.error 
                    }
                </div>


Updated on 22-Jun-2017

Can you answer this question?


Answer

1 Answers

Liked By