tags:

views:

47

answers:

1

Look this what i have

string imagePath = "http://" & ConfigurationManager.AppSettings("DomainName") & "/images/"
htmlstring = <tr style='border-width: 0px; height: 36px; background-image: url(' " & imagePath & " cart_top_centbg.jpg');'>

here imagePath is set in web.config file but this is not geting loaded in that css style background-image, m i doin' something wrong here ?

+1  A: 

The above code appears to be VB syntax? If you are in C#, you would need:

string imagePath = @"http://" + ConfigurationManager.AppSettings["DomainName"] + "/images/";

string htmlstring = "<tr style='border-width: 0px; height: 36px; background-image: url('" + imagePath + "cart_top_centbg.jpg');'>";
enforge