Home > DeveloperSection > Forums > How to post data from user control
Tanuj Kumar

Total Post:134

Posted on    August-27-2014 1:35 AM


 1 Reply(s)
 690  View(s)
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?

Sumit Kesarwani

Total Post:378

Posted on    August-27-2014 2:54 AM

Hi Tanuj, 
try this:

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

 ...your form & submit here

<% } %>

Don't want to miss updates? Please click the below button!

Follow MindStick