Day: January 30, 2010

Difference between Convert.ToString() and .ToString()
The main difference between these both are the fact that Convert.ToString() can handle NULL and avoid ObjectReferenceNullException, while .ToString() would break in such case. It is always good to use the Convert object than the ToString() Let's have a look into the Convert.ToString() method. Using a reflector, i got hold of the Convert object below: ...

Internet Explorer Bugs
Internet explorer is considered as the most widely used browser over the internet. However, this buddy comes up with some weird bugs in every version of it. I will be giving you a high level view of the bugs that IE has got. To get the indepth view of these bugs, i would recommend you ...

Avoid Outline for textboxes on focus in Safari
Safari has its own amazing styles with it. Most of them are pretty cool and makes the browser stand out. But some of them can affect the screen structure. One of them would be the blue outline that textboxes have on focus. The solution to this is a simple css fix. input:focus{ outline : none ...

Avoid Resizing of textarea in Safari
Safari has its own amazing styles with it. Most of them are pretty cool and makes the browser stand out. But some of them can affect the screen structure. One of them would be the resizing of the multiline textboxes or textarea in Safari. But the solution is quite simple css fix. In the css ...

CSS fixes based on Browser versions
IE Specific CSS loading: There can be scenarios wherein you might want to load IE version specific CSS. Say an IE6.css file for IE 6 and below, IE7.css for IE 7 alone. In these scenarios, it is good to exploit the conditional comments that IE layout engine Trident look upon. Check the code below to ...

jQuery not working from external js file?
I had faced this issue in one of my development projects. I used jquery lavishly in every bit of my javascript code. Since during development, i used to write the scripts in the page itself, i didn't have to bother much. But later when i decided to move the scripts to another external ".js" file, ...

.Net Coding Standards Part2 : Coding Practices
This post is in continuation to my previous post ".Net Coding Standards Part1 : Naming conventions and style". If you wish to go through it again, you can access it here. Here i will be taking you through some Coding practices in DotNet coding. I would request you to go through them slowly and with ...

.Net Coding Standards Part1 : Naming conventions and style
As .Net developers we tend to forget this key ingredient in our lives. Quite frequently, we end up in a coding mess. It would be good to take into account of coding standards before you start writing your first letter. It took me a lot to understand them. In no way you could learn them ...

CSS and Browser Compatibility Chart
We have a lot of browsers poping up every year. Not to mention the versions they come in. At times it can prove difficult to check if the website you have designed would look good in all browser. Browser compatibility has always been a web designers nightmare. Taking into account of this, i thought it ...