EditColumnCommand EditText-Icon with dynamic Path

G

Georg Fleischer

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?

MfG
Georg Fleischer
 
R

Ray Costanzo [MVP]

Hi Georg,

This is a classic ASP group. The ASP.NET groups have "aspnet" in their
names.

Ray at work
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top