J
Jennifer Mathews
I have all my images in a directory called "images/Red". They are all the same color and
look the same way. They are all called like the following code:
<asp:ImageButton ID="cmdSave" runat="server" ImageUrl="~/images/Red/Save.jpg"
AlternateText="Save" />
Now some users are complaining they can't see them clearly but some users want them to
stay that color (Red). No problem I thought. I created Blue buttons and put them in
another directory called "images/Blue".
I have _s_CSS_Btn_DWhr as a friend variable "Red". (The default.) I thought the
following would work in the ascx but it doesn't.
<asp:ImageButton ID="cmdSave" runat="server" ImageUrl="~/images/<%= _s_CSS_Btn_DWhr
%>/Save.jpg" AlternateText="Save" />
Instead of substitues "Red" for <%= _s_CSS_Btn_DWhr %> the processor writes
%3C%25=%20_s_CSS_Btn_DWhr%20%25%3E
Can someone tell me what I am doing wrong?
Thanks
look the same way. They are all called like the following code:
<asp:ImageButton ID="cmdSave" runat="server" ImageUrl="~/images/Red/Save.jpg"
AlternateText="Save" />
Now some users are complaining they can't see them clearly but some users want them to
stay that color (Red). No problem I thought. I created Blue buttons and put them in
another directory called "images/Blue".
I have _s_CSS_Btn_DWhr as a friend variable "Red". (The default.) I thought the
following would work in the ascx but it doesn't.
<asp:ImageButton ID="cmdSave" runat="server" ImageUrl="~/images/<%= _s_CSS_Btn_DWhr
%>/Save.jpg" AlternateText="Save" />
Instead of substitues "Red" for <%= _s_CSS_Btn_DWhr %> the processor writes
%3C%25=%20_s_CSS_Btn_DWhr%20%25%3E
Can someone tell me what I am doing wrong?
Thanks