469,323 Members | 1,599 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

EditColumnCommand EditText-Icon with dynamic Path

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
Jul 22 '05 #1
1 1288
Hi Georg,

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

Ray at work

"Georg Fleischer" <Ge************@discussions.microsoft.com> wrote in
message news:8B**********************************@microsof t.com...
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

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Steve | last post: by
reply views Thread by Andy Ogden | last post: by
1 post views Thread by Green | last post: by
9 posts views Thread by tshad | last post: by
4 posts views Thread by tshad | last post: by
2 posts views Thread by Stephen | last post: by
5 posts views Thread by steve_barker333 | last post: by
1 post views Thread by pepethecow | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.