DIV Tag
ASP.NET
5
Posts
4
Posters
0
Views
1
Watching
-
-
Make sure that the tag has an id and runat="server". Then you can set the style from code behind:
IdOfTheDiv.Attributes("style") = "background:url(images/someimage.gif);"
Despite everything, the person most likely to be fooling you next is yourself.
-
In C# it should be like
IdOfTheDiv.Attributes**["style"]** = "background:url(images/someimage.gif);"
Navaneeth How to use google | Ask smart questions