title: How to make a submit button with MVC 4
body: <p>I am trying to write a code that takes the last name and first name from user input and stores the values in a data table with MVC4. I have added the following code under Accountcontroller.cs </p>
  
  <p>that will create a submit button. Once the user clicks the submit button it would add the user input to the data set. </p>
  
  <pre><code>private void button_Click( object sender, EventArgs e) 
  
  { 
     SqlConnection cs = new SqlConnection("Data Source = FSCOPEL-PC; ....
  
     SqlDataAdapter da = new SqlDataAdapter();
  
     da.insertCommand = new SqlCommand(" INSERT INTO TABLE VALUES ( Firstname, Lastname,  )
  }
  </code></pre>
  
  <p>I have also added the following code under logincs.html that will create the submit button, once the user logins.</p>
  
  <pre><code>   &lt;button type="submit" id="btnSave" name="Command" value="Save"&gt;Save&lt;/button&gt;
  </code></pre>