Hi frienz,
for my last project i face this twist. Need to change a div background image. To achieve this create a new css attribute, that's not a good way. so i used page.resolveurl
code:
div.Style["background-image"] = Page.ResolveUrl("~/pathrelativetoapproot/yourimage.jpg");
Have a nice day... 'N happy Coding :)
No comments:
Post a Comment