Posts

Showing posts from September 18, 2013

Insert Data In SQL Data Base using Jquery in Asp.Net

To make you understand take a small example. Suppose we want to make a simple signup form (in which we will not check similar username or duplicate user name; I hope you can easily do it). So make a table with two columns 'UserID' and 'Password'. Take three text box one for username and other two to match and insert password (You can use java script to match password; I am not including it here). A button which will insert data in data base after clicking it. Write this code after closing form tag and just above closing of body tag. <script type="text/javascript">         $(document).ready(function () {             $("#Button1").click(function () {                 $.ajax({                     type: 'post',                     contentType: " application/json; charset=utf-8",                     url: ' datainsertunsingjquery.aspx/InsertMethod ',               // Here InsertMethod is a function on page name datains