Hi there i am trying to do “simple” thing and cant manage to work it out
.net,
in my site i have a nav menu each item in the menu is an image
(like here in the upper “menu” Questions..Tags..etc.. but the background color in my case is an image)
i want to load an image and dynamically add text to it from the server side
i cant manage to add text to it .
what is the best approach
i want to be able to do something like the follow:
<asp:ImageButton ID="imgButton" runat="Server" ImageUrl="nav1.gif" **text=""**/>
and from the server just to be able to write on it something like the follow:
imgButton.text=”AA”
appreciate any help:)
Thank Eran.
you can use css and an unordered list (
<ul>) to achieve such an effect. just style the list items (<li>) to have a background image and placeasp:labels(which can be access from your code behind to change dynamically) within the listitems