title: How to trigger button click in MVC 4
body: <p>I'm new to MVC and I'm creating a Registration form for my app but my button click is not working current code is not given below</p>
  
  <p>view</p>
  
  <pre><code>&lt;fieldset&gt;
              &lt;legend&gt;Sign Up&lt;/legend&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.Label("User Name")
                      &lt;/td&gt;
                      &lt;td&gt;
                          @Html.TextBoxFor(account =&gt; account.Username)
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.Label("Email")
                      &lt;/td&gt;
                      &lt;td&gt;
                          @Html.TextBoxFor(account =&gt; account.Email)
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.Label("Password")
                      &lt;/td&gt;
                      &lt;td&gt;
                          @Html.TextBoxFor(account =&gt; account.Password)
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.Label("Confirm Password")
                      &lt;/td&gt;
                      &lt;td&gt;
                          @Html.Password("txtPassword")
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;input type="submit" name="btnSubmit" value="Sign Up" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/fieldset&gt;
  </code></pre>
  
  <p>model</p>
  
  <pre><code>public class Account
  {
      public string Username { get; set; }
      public string Email { get; set; }
      public string Password { get; set; }      
  
  }
  </code></pre>
  
  <p>controller(not fully completed)</p>
  
  <pre><code> public class AccountController : Controller
      {
          //
          // GET: /Account/
  
          public ActionResult Index()
          {
              return View();
          }
  
          // GET: /Account/SignUp
  
          public ActionResult SignUp()
          {
  
              return View();
  
          }
  
          [HttpPost]
          public ActionResult SignUp(string userName,string email,string password)
          {
              Account createAccount = new Account();
  
              createAccount.Username = userName;
              createAccount.Email = email;
              createAccount.Password = password;
  
              return View("Index");
  
          }
  
      }
  </code></pre>
  
  <p>how to define click event here I tried the http post but its not working I know my code is not correct please point what is the error here</p>