Translate

Saturday, March 24, 2012

IIS versions


IIS Version Number
Operating System
Downloadable?
Supports Classic ASP
Supports asp.net
1.0
Windows NT 3.51 sp3
Yes
No
No
2.0
Windows NT4.0
Yes
No
No
3.0
Windows NT4.0 sp3
Yes
Yes
No
4.0
Windows NT4.0 option pack
Yes
Yes
No
5.0
Windows 2000 Server
And
Windows 2000 Professional
No
 (Integrated into the Operating System)
Yes
Yes
5.1
Windows XP professional
No
 (Integrated into the Operating System)
Yes
Yes
6.0
Windows Server 2003
And
Windows XP Professional 64 bit
No
(Integrated into the Operating System)
Yes
Yes
7.0
Windows Vista
And
Windows Server 2008
No
(Integrated into the Operating System)
Yes
Yes
7.5
Windows 7
And
Windows Server 2008 R2
No
(Integrated into the Operating System)
Yes
Yes

Wednesday, March 21, 2012

jquery hover popup example (jquery tooltip pop up example)

In this article I will show you a super easy way to show a pop out window on hover. The image below shows how the pop out window looks like.



To do this you need to download these to javascript libraries.

Once you download those to files, follow these two steps.

1> Create an HTMLfile with the content shown below

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.qtip-1.0.0-rc3.min.js"></script>
    <script type="text/javascript">
        // This is the code you will modify to customize it according to your needs
        $(document).ready(function () {

            $('#divHover').qtip({
                content: '<strong>Bolded text pop out<strong>',
                position: {
                    corner: {
                        tooltip: 'leftBottom',
                        target: 'right'
                    }
                },
                style: {
                    tip: true, // Apply a speech bubble tip to the tooltip at the designated tooltip corner
                    border: {
                        width: 0,
                        radius: 4
                    },
                    name: 'light', //this determines the font
                    width: 200,
                    height: 30,
                    textAlign: 'left'
                }
            });

        });
    </script>
</head>
<body>
    <br />
    <br />
    <center>
        <div id="divHover" style="width: 100px;">
            hover over me</div>
    </center>
</body>
</html>


2> Wherever you create the html file, create a folder called scripts and put the files you downloaded above in there.



Now double click the html file and you should be able to see the text on hover.


Monday, March 12, 2012

jquery refresh page

location.reload();

OR

window.location.href = window.location.href

c# compare two strings

To compare two strings using c# use String.Compare Method.

The signature for the method is 
public static int Compare(string strA,string strB,bool ignoreCase)

Example for a case sensitive string comparison:

string a = "hi";
string b = "HI";

bool isMatching; 
//false below means do not ignore case
if (string.Compare(a, b, false)== 0) 
{
    isMatching = true;
}
else
{
    isMatching = false;
}
Console.WriteLine(isMatching.ToString());//Displays False