title: Can I connect to SQL from JavaScript MVC?
body: <p>I am populating a list of names that will be added to my Sql Database.  In this simple case, how do I send the information to SQL server without my page being refreshed?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function addNewRow() { 
      $('#displayPropertyTable tr:last').after('&lt;tr&gt;&lt;td style="font-size:smaller;" class="name"&gt;&lt;/td&gt;&lt;td style="font-size:smaller;" class="address"&gt;&lt;/td&gt;&lt;/tr&gt;');
      var $tr = $('#displayPropertyTable tr:last');
      var propertyCondition = $('#txtPropAddress').val();
      if (propertyCondition != "") {
          $tr.find('.name').text($('#txtPropName').val());
          $tr.find('.address').text($('#txtPropAddress').val());        
      }
  } 
  &lt;/script&gt;
  ...
  &lt;table id="displayPropertyTable" width= "100%"&gt;
  &lt;tr&gt;
       &lt;td style="font-size:smaller;" class="name"&gt;&lt;/td&gt;
       &lt;td style="font-size:smaller;" class="address"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  ...
  &lt;table&gt;
  &lt;tr&gt;
       &lt;td&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/td&gt;
       &lt;td colspan="2"&gt;&lt;input id="txtPropName" type="text" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
       &lt;td&gt;&lt;b&gt;Address&lt;/b&gt;&lt;/td&gt;
       &lt;td colspan="2"&gt;&lt;input id="txtPropAddress" type="text" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  ...
  &lt;button onclick="addNewRow();"&gt;Add&lt;/button&gt;
  </code></pre>