Tuesday, December 9, 2008

How to provide background image in TD from root path

use this code to provid background image url for TD which map to root path

< td align="left" background=' < %= Server.MapPath("~/images/rolen.gif") %>' >

u can also use this code also

< td align="left" background=' < %= ResolveClientUrl("~/images/box.gif") %>' >

well i prefer second "ResolveClientUrl" becoz ther Server.MapPath map path at server like c:\rajesh\rolen\mukesh.jpg

Share This!

No comments:

Powered By Blogger · Designed By Seo Blogger Templates