Quantcast
Channel: Andrey Shchekin's Blog - Latest Comments
Viewing all articles
Browse latest Browse all 50

Re: Multiple submit buttons with ASP.NET MVC: final solution

$
0
0


1.) public ActionResult Login(LoginModel viewModel, string returnUrl)public ActionResult Register(LoginModel viewModel)

2.)
<input name="login" type="submit" value="Login">
<input name="register" value="Register"  type="submit"> 
3)
@using (Html.BeginForm("Action", "Secure")) 

Thanks for your help.


Viewing all articles
Browse latest Browse all 50

Trending Articles