Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Wednesday, July 30, 2014

Fix GridView Header on scrolling in ASP.NET

Wondering how to fix GridView header while scroll down.


Use This CSS class




  .HeaderStyleWithFixPos  { position:relative; top:expression(this.offsetParent.scrollTop);  }

Now use this class in header style 


<HeaderStyle HorizontalAlign="Center" ForeColor="White" CssClass="HeaderStyleWithFixPos"></HeaderStyle>

Saturday, February 9, 2013

Repair Windows Server 2008 R2 & Restart issue

Repair WINDOWS Server 2008 R2

Suppose your windows Server R2 is not starting up & restarting at start up then you can fix it .

Procedure to Repair Corrupt Windows 2008 Server OS:

1)  Insert bootable CD / DVD of Windows 2008 Server in the machine.
2) Restart PC
3)  Instialize the New Windows setup.
4) Click on Repair Windows
5)Execute this command in recovery console
X:\Sources\Recovery\StartRep.exe

It will ake some time & fix all errors.

Saturday, October 13, 2012

Cross browser : Change scroll bar color & Custom scrollbar

Add the following CSS snippet in the header section of webpage.
 


 <STYLE>/* Let's get this party started */
::-webkit-scrollbar {    width12px;}
 /* Track */::-webkit-scrollbar-track 
{    -webkit-box-shadowinset 6px rgba(0,0,0,0.3);
     -webkit-border-radius10px;    border-radius10px;
}
 /* Handle */
::-webkit-scrollbar-thumb
 {    -webkit-border-radius10px; 
  border-radius10px;    backgroundrgba(255,0,0,0.8)

  -webkit-box-shadowinset 6px rgba(0,0,0,0.5)}
::-webkit-scrollbar-thumb:window-inactive 
{  backgroundrgba(255,0,0,0.4)}    
  </STYLE>

Monday, August 27, 2012

Avoid the ActiveX warning in IE7 and IE8?

Add this to your html page :


 <!doctype html>
<!-- saved from url=(0023)http://www.contoso.com/ -->

Friday, August 3, 2012

Display table design ( with data types ) with SQL QUERY

Display table design with SQL QUERY 


Execute folowing in SQL Query window

sp_columns <table name>

OR

sp_help  <table name>



Thursday, July 19, 2012

Get selected check box through JavaScript


window.onload = function () {
        getChkItem();
    }
function getChkItem() {
var chk = "";
var arrChk = new Array('cbID_1','cb_2',cb_3,cb_4,cb_6);  // checkbox 1 ID & check 2
for(iCtr=0; iCtr < arrChk.length; iCtr++){
 var element = document.getElementById(arrChkRht[iCtrRht]);
 if (typeof(element) != 'undefined' && element != null) {  if(document.getElementById(arrChk[iCtr]).checked){
chk = chk  + arrChk[iCtr].split("_")[1] + "," ;            
                }
}
alert(chk.slice(0, -1)); }