Posts

Showing posts from February, 2015

select all checkbox in table using jquery

Image
< html > < head > < script type ="text/javascript" src ="Jquery.1.10.2.js"></ script >    < script type ="text/javascript">        $(document).ready( function () {            $( '#selectall' ).click( function (event) {                if ( this .checked) {                    $( '.chkval' ).each( function () {                        this .checked = true ;                    });                }  ...

Clear Browser Cache using Asp.net c#

A  web cache  is a Process for the temporary storage of  web documents , such as  HTML pages  and  images , to reduce  bandwidth  usage,  server  load. Use this function all the Button Click Event Automatically Clear the cache memory.      public void RemoveCache()         {             HttpContext context = HttpContext .Current;             IDictionaryEnumerator enumerator = context.Cache.GetEnumerator();             while (enumerator.MoveNext())             {                 context.Cache.Remove(enumerator.Key.ToString());          ...

Print Html Table in Asp.net Jquery

< html > < head > < script src ="Jquery.1.10.2.js" type ="text/javascript"></ script > < script type ="text/javascript">     function btnPrint_onclick() {         $( '#tblcat td:nth-child(2), th:nth-child(2)' ).remove();         $( '#tblcat_length' ).hide();         $( '#tblcat_filter' ).hide();         $( '#tblcat_info' ).hide();         $( '#tblcat_first' ).hide();         $( '#tblcat_previous' ).hide();         $( '#tblcat_next' ).hide();         $( '#tblcat_last' ).hide();         var docprint = window.open( "about:blank" , "_blank" );         var oTab...

how to assign asp.net dropdownlist id and text in jquery using ajax service?

Jquery < script type ="text/javascript">     $(document).ready( function () {         getCat();     });     function getCat() {         $.ajax({             type: "POST" ,             url: "Pro.aspx/Select" ,             dataType: "json" ,             data: {},             contentType: "application/json; charset=utf-8" ,             success: function (data) {                 var jsdata = JSON.parse(data.d);   ...