473,395 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1375
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Stanley J Mroczek | last post by:
I Set the EditCommandColumn to Visible=False to stop people who are not allowed to make any changes to a record. How can set it to Visible=true for some users? Please answer in VB Thanks Stan
10
by: Steve | last post by:
Can anyone recommend the best way to pass a string back to the calling class (windows form) from a dialog that was shown modally using ShowDialog?
0
by: Andy Ogden | last post by:
I am using a datagrid and using an edit template to update one of the rows. The code below comes from the Update method that I have written. The original value of the row appears in the edit box, I...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
1
by: Green | last post by:
Hi, I have a question concerning how to manipulate the properties in the user control, and there is an interesting article about this from Microsoft:...
9
by: tshad | last post by:
Is there a way to use your own image in place of the automatic one that ASP uses when doing editing in your DataGrid pages? We already have a style of button we are using and would like to be...
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
2
by: Stephen | last post by:
Ever since I ported VB my webform to C# the images in the following html have borders. <asp:EditCommandColumn footerText="New Item" EditText="<img src=images/edit.gif (border=0 alt='Edit line...
5
by: steve_barker333 | last post by:
Hi guys! I found a great article a while ago about how to write client side C#. Sadly, I can't find it again now, but here's the jist of what I learnt to do: 1. Write a C# (or any .NET...
1
by: pepethecow | last post by:
I hope this is the appropriate group for this question--the regex group didn't look too appealing. I am trying to build a regex to parse out dialog controls from C++ RC files. Suppose the input...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.