Scrollbar Colors customization                                         It's uncertain how many browsers are still supporting color scrollbars. I understand IE only supported it for one version, then dropped it with the next. However we will keep the code here for those who wish to learn from it. Add the following script within your head tag and change the color attributes to suit.

<style type="text/css">
body { scrollbar-arrow-color: ffffff; scrollbar-base-color:ffffff; scrollbar-dark-shadow-color: ffffff; scrollbar-track-color: ffffff; scrollbar-face-color: ffffff; scrollbar-shadow-color: ffffff; scrollbar-highlight-color: ffffff; scrollbar-3d-light-color: ffffff; }
Read more ...

This is one of the method to Change font color "onMouseOver" and "onMouseOut" using(CSS)

<style type="text/css">
<!-- Created on: 27/09/2012 -->
 <table onmouseover="'white'"  border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#008080" width="100%" height="34" bgcolor="#95BED4">
        <td onMouseOver="'#2172A1';'hand';" onMouseOut="'#95BED4'" width="20%">
         <!-- <P> tag onMouseOver Color -->
  <p align="center"><b><font face="Verdana" color="#2172A1" onmouseover="'white'" onmouseout="'#2172A1'" size="2">Home</font></b></td>

you can do it like this: make two classes in your stylesheet something like menuon and menuoff.

<style type="text/css">
td.menuon { background-color: #000000; color: #FFFFFF; }
td.menuoff { background-color: #FFFFFF; color: #000000; }

<td class="menuoff" onmouseover="className='menuon';" onmouseout="className='menuoff';">

<a href="#" style="text-decoration: none;" onmouseover=" = 'underline'" onmouseout=" = 'none'">asdasdasdads</a>

<p onMouseOut=" = 'black';" onMouseOver=" = 'red';" align="justify">
Your text here to change text on mouseover</p>
Read more ...

This is one of the method to set mouse pointer focus in page load  on first text-box or

Page.ClientScript.RegisterStartupScript(this.GetType(), "Setfocus", "document.getElementById('" +ddlCountry.ClientID+"').focus();", true);

Read more ...

Create log file in using C# :
                                                                                        Dot net have  various classes to create, write  on a text file . Here I'm using create() method to create a text file and using some classes to reading and writing text files those are TextReader,StreamReader,StreamWriter,TextWriter classes.These are abstract classes .Here i have taken a logfilepath which is the physical path of the text file.If the file is existing in path then we will write (log) messages into this text file.If the file is not existing in the path then we will create a file in this path and write a message into it 
public static string strPath = AppDomain.CurrentDomain.BaseDirectory;
public static string strLogFilePath = strPath + @"log\log.txt";
public static void WriteToLog(string msg)
    if (!File.Exists(strLogFilePath))
    using (StreamWriter w = File.AppendText(strLogFilePath))
        w.WriteLine("\r\nLog: ");
        string err = "Error Message:" + msg;

Read more ...

Related Posts Plugin for WordPress, Blogger...