27/01/2011

Modify the direction of basic HTML tag using global resource

Add new record into global resource with the name Language, and asign the value 1033 to english variable, and another value for another variable. After that, add the follwoing code to html tag, such us, TD:

align="<%= ((GetGlobalResourceObject("GlobalResources", "Language").ToString() == "1033" )? "right" : "left" ) %>"




No comments:

Post a Comment