Posts

Showing posts from June, 2014

Insert data using jquery

Demo.aspx < html xmlns ="http://www.w3.org/1999/xhtml"> < head id ="Head1" runat ="server">     < title ></ title >     < script type ="text/javascript" src ="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></ script >     < script type ="text/javascript" src ="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></ script >     < script type ="text/javascript">         $(document).ready( function () {             $( '# <% =btnsub.ClientID %> ' ).click( function () {                 $.ajax({                     type: 'POST' ,                     contentType: "application/json; charset=utf-8" ,                     url: 'insertjquery.aspx/Insertmethod' ,                     data: "{'Name':'" + document.getElementById( &