Hi Rhonda,
This returns an error of server tag no well formed.
Thanks
----------------------------------------
From: "Ronda K" <rondapederson gmail.com>
Sent: Tuesday, February 26, 2008 10:42 PM
To: aspnet aspadvice.com
Subject: [aspnet] Re: Syntax Error for Beginner
You will wants something like this
ImageUrl="~/Images/NavImages/<%#EVal("Clientlog
of")" />
OR
<img src="~/Images/NavImages/<%#
Eval("Clientlogof")">
or use an imagebutton
On Tue, Feb 26, 2008 at 8:21 PM, Mike Elmalem - Efactory Inc
<mike efactory.ca> wrote:
Hello All,
Basic beginner question about syntax. I trying to get a
basic
navigation working with records that I am pulling from my
database.
I have a field in my database named ClientLogo which
contains the image
that I would like to use in the nav.
When I use a repeater with the following <%#
DataBinder.Eval(Container.DataItem, "ClientLogo")
%> I get the values
from my Database. They are Client1.gif, Client2.gif,
Client3.gif,
Client4.gif.
So my next step is this
<asp:Image ID="Image1"
runat="server"
ImageUrl="~/Images/NavImages/Client1.gif" />
but I would like to replace
"Client1.gif" with the value that is returned by
<%#
DataBinder.Eval(Container.DataItem, "ClientLogo")
%> but I can't get the
syntax right.
What is it supposed to look like?
Thanks,
Mike
--
Mike Elmalem
eFactory Inc.
Mob. 416-836-9460
Fax. 905-669-8056
Off. 905-669-8056 ext 1
<http://www.efactory.ca>
--- List Settings ---
http://aspadvice.com/list
s/
--
If you want to call me click here:
https://me.vonage.com/rka
a>
--- List Settings ---
http://aspadvice.com/list
s/
--- List Settings ---
http://aspadvice.com/list
s/
|