EditColumnCommand EditText-Icon with dynamic Imagepath

G

Guest

Hello,

I have the following problem. I need to insert my global image-path to an
icon the EditText Property of my <asp:DataGrid> control.

<asp:EditCommandColumn ButtonType="LinkButton"
UpdateText='<%=ImgSrc_Update%>' CancelText='<%=ImgSrc_Cancel%>'
EditText='<%=ImgSrc_Edit%>'>

The problem is, that the <%= %> statements are not evaluated.
If I use the statement as a normal Image-Tag, everything works fine.

These are the definition statements for the variables:

ImgSrc_Edit = "<img src='" + ConfigurationSettings.AppSettings["PATH_IMG"] +
"/buttons/button_edit.gif' alt=''>";
ImgSrc_Update = "<img src='" + ConfigurationSettings.AppSettings["PATH_IMG"]
+ "/buttons/button_ok.gif' alt=''>";
ImgSrc_Cancel = "<img src='" + ConfigurationSettings.AppSettings["PATH_IMG"]
+ "/buttons/button_cancel.gif' alt=''>";

Has anybody got an idea how to solve this problem or a better way to handle
global image-paths?

MfG
Georg Fleischer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top