Day: January 30, 2010

D

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: ...

I

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 ...

A

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 ...

A

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 ...

C

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 ...

j

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 ...

j

jQuery: Add (all), Remove (All) – operations between two Listboxes

Consider the scenario below: In case of operations between two list boxes like add, add all, remove, remove all; jQuery is quite amazing with it. With the use of appendTo method, you just need one line for each of the four operations. Checkout the code below: $(document).ready(function(){ $("#btnAdd").click(function() { $("select[id$='lstAllAgents'] > option:selected").appendTo("select[id$='lstGroupMembers']"); }); $("li#btnAddAll").click(function() { ...

C

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 ...