I'm using a background image for a \[code\]<li>\[/code\] that is coming from database. I have lots of products images that are coming from backend as path \[code\]~/uploads/images/a09gh0977.png\[/code\]. I know dynamic binding can be achieved via\[code\]<%#string.Format("{0}",Eval("db_Path"));\[/code\]But my issue is that, i am applying background image via external css class. \[code\].product-image{ background-image:url('') /* how to set dynamic db driven image here. other properties will go here}\[/code\]I know the easiest solution of this \[code\]<li> <img src='http://stackoverflow.com/questions/14542880/<%#Eval()%>' runat='server'> </li>\[/code\] , but my client needs the way I mentioned here. I tried to convince him on the easiest solution {img tag} but he is asking to try if its possible. I don't know why?I want to know ,if its possible to build that css class dynamically using ASP.Net and C#.