Posts

Showing posts with the label jquery

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( &

Nested Grid view

Image
Desining .aspx < head id ="Head1" runat ="server">     < title > Grid </ title >      < script type ="text/javascript" src ="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></ script >     < script src ="jquery-1.3.2.min.js" type ="text/javascript"></ script >     < script language ="javascript" type ="text/javascript">         function divexpandcollapse(divname) {             var img = "img" + divname;             if ($( "#" + img).attr( "src" ) == "images/plus.gif" ) {                 $( "#" + img)     .closest( "tr" )     .after( "<tr><td></td><td colspan = '100%'>" + $( "#" + divname)     .html() + "</td></tr>" );                 $( "#" + img).attr(