Author: consumed | Posted on: 8/19/2010 3:50:15 PM | Views : 275

Hello,
is there a way to manipulate a piece of a File path in a ImageUrl of an asp image?


Ex:  <asp:Image ID="helpButton" ImageUrl="images/HelpButtonsA/buttons/help.png" runat="server"/>


I would like to change HelpButtonsA dynamically to HelpButtonsB(assuming that the path "images/HelpButtonsB/buttons/help.png" exists.)
Can it be done by setting a public variable in the code behind then using that variable in the path?


-Chris

...

Go to the complete details ...