Posts

Showing posts from November, 2015

Gridview Header Checkbox Select and Deselect ALL Rows Checkbox

Import Jquery < script src ="jquery.min.js"></ script > Use this Code With in Head Tag: < script type ="text/javascript">         $(document).ready( function () {             $( '#chkselectall' ).click( function () {                 if ($( '#chkselectall' ).is( ':checked' )) {                     $( '[id$=testGrd]' ).find( 'input:checkbox' ).prop( 'checked' , true );                 }                 else {                     $( 'input:checkbox[name$=chkid]' ).each(                         function () {                             $( this ).removeAttr( 'checked' );                         });                 }             });         });             </ script > GridView: < table id ="ContentPlaceHolder1_testGrd"   cellspacing ="0" border ="1" >

Indian Rupee Font Symbol

Image
Rupee Font How to install font? 1.  Download  the font ITF-Rupee.ttf  2. Install the font. (It is easy. Just copy the font and paste it in "Fonts" folder in control panel) 3. Start Using Rupee Symbol.         

Automatically Clear Html Controls

        protected void AllTextBoxClear( Control c)         {             TextBox t = c as TextBox ;             if (t != null )             {                 string hi = t . Text = "" ;             }             foreach ( Control child in c . Controls)                 AllTextBoxClear(child);         }         protected void AllCheckBoxClear( Control c)         {             CheckBox t = c as CheckBox ;             if (t != null )             {                 t . Checked = false ;             }             foreach ( Control child in c . Controls)                 AllCheckBoxClear(child);         }

Install entity framework MVC

Image