Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
cshtml Code :

@using (Html.BeginForm("Btn_LoginClick", "Home", FormMethod.Post))
{
<input type="submit" id="Btn_Login" name="submit" value="ورود" class="button" />
}


Controller Code :


SQL
public ActionResult Register()
     {
         return View();
     }
     [HttpPost]
     public ActionResult Btn_LoginClick() {
         return RedirectToAction("Register");
     }
Posted
Comments
Bala Selvanayagam 2-Sep-13 5:05am    
The code should work,

What do you mean by "NOT WORKING"?

You have to give more back ground information such as what happens when you click on the button, what is the eroror message you are getting in the screen and the URL on the address basr ?
SDK03 2-Sep-13 13:10pm    
Can you please explain in more. :) From code it looks like will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900