HOW TO POST DATA FROM USER CONTROL

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
 942  View(s)
Ratings:
Rate this:

Currently i am working on project in which login user control is there in master page. 

Now when i click on login button of login control - it calls login method of controller class with acceptver = get. how can i call login method with acceptverb = post?

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: How to post data from user control

    Hi Tanuj, 

    try this:

    <% using (Html.BeginForm("Login", "Home")) { %>

     ...your form & submit here

    <% } %>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!