Tuesday, May 18, 2010

How to dynamically apply globalization on keyword retrieved from various sources

One of the common requirement is to apply globalization on the keyword that retrieved from sql database to make your content dynamic.

The below is the example, where output is the KEYValue of the KEYWORD in ResourceCLASSNAME

string output = HttpContext.GetGlobalResourceObject("ResourceCLASSNAME", "KEYWORD").ToString();

Monday, May 17, 2010

Google Mapl Play back

1. very good example
2. complex example
3. click to show the point example
4. example in flex

Wednesday, May 5, 2010

motivating clips from Steve Jobs

This is one of the must watch motivating video

Friday, April 30, 2010

Google Map API V3 vs V2

Adding Marker in V2:
map.addOverlay(marker);

Adding Marker in V3:
marker = new google.maps.Marker( { position: point, icon: icon1, title: sTitle, map: map } ) ;

Removing Marker in V2:
map.removeOverlay(marker);

Removing Marker in V3:
marker.setMap(null);

Actually there are many more difference, but this post only highlighted basic one.

Wednesday, April 28, 2010

RadWindows pop up position

Want to control your radwindows pop up position, check out this post to save your life.

padding zero

Sometime when you need to append padding zero for a numeric figure. e.g. 0001, 0002 .

You might think to write your own 'sweet' logic to format the string. The good news is, .net out of the box gives you this feature.

string.Format("{0:00000}", yourIntegerValue);

unable to retrieve textbox value in server side when textbox is set readonly

One of the common UI design is to have a couple of textbox and you might want to prevent it from user modifying the value. And the easiest wayout is to set the textbox as readonly or disabled.

Unfortunately, you wont be able to get these 'disabled' or 'read-only' textbox value from server side.

One of the workarounds is to set the readonly condition during runtime instead of design time in asp.net page.

txtbox1.Attributes.Add("readonly", "readonly");