Archive : Tips and Tricks

Get Server Name using IP

1
Digg me

To find out Windows Server Name using IP

Goto Command Prompt (Start > Run > cmd>

C:> nbtstat -A  <<ip address>>

(remember upper case A)

Note (added on mar 31st)

this works on all versions of windows

http://www.computerhope.com/nbtstat.htm

HTML Font Size Comparison / Mapping

1
Digg me

Created a quick HTML page to find the font size mapping between various units (em, px, pt)

The font size looks uniform  in FF 3 and Chrome. (Images attached)

In IE.. you see it by yourself.

IE8 Beta 2 and Asp.net rendering issues

2
Digg me

IE8 Beta 2 and Asp.net Menu Control rendering issues

If your code works on IE 6,7 and Firefox even on chrome it may not work on IE8. The reason being Microsoft suddenly woke up and started to be strict with design and style standards.

For styles not working the way it should or DHTML not appearing on screen the problem is inline styling. IE 8 doesnt parse the code if its inline styling.
So the simple fix is move all the style=” “  to stylesheet class
This is better way to clean your code too.

CSS Cleaner for asp.net apps

2
Digg me

I found this Freebie (not great interface though) which helped me to cleanup my stylesheet.

http://www.dotnetsurfers.com/Blog/ct.ashx?id=5eb69d72-b844-412a-9da2-ac8f21b5a714&url=http%3a%2f%2fwww.dotnetsurfers.com%2futils%2fcsscleaner.zip

Word of caution

By default this looks for .aspx,.ascx,.master files.

So before removing the unused class, please search the entire solution to make sure you haven’t used them in code behind files.

object.cssclass = “cssclassname”

Happy Style Cleaning !