List Info

Thread: Re: Syntax Error for Beginner




Re: Syntax Error for Beginner
country flaguser name
United States
2008-02-27 04:41:18
Hi Rhonda,

This returns an error of server tag no well formed.

Thanks

----------------------------------------
From: "Ronda K" <rondapedersongmail.com>
Sent: Tuesday, February 26, 2008 10:42 PM
To: aspnetaspadvice.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
<mikeefactory.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 

--- List Settings ---
http://aspadvice.com/list
s/




--- List Settings ---
http://aspadvice.com/list
s/


Re: Syntax Error for Beginner
user name
2008-02-27 08:03:12
Michael,
 
I am on way to work. ; Here is a working example generated from backend:

"&lt;img src="

& ConfigurationManager.AppSettings("imageslingsSmall") & xfabName & ".gif>"
And a working example from front end:
&nbsp;

<

img src=/ccp/<%# eval(";fabricImage")%&gt; align=middle border=0>
I don't seem to be using any quote marks on front end example.... try that.
&nbsp;
HTH
Ronda

On Wed, Feb 27, 2008 at 4:41 AM, Mickael - Efactory Inc. < mikeefactory.ca">mikeefactory.ca> wrote:
Hi Rhonda,

This returns an error of server tag no well formed.

Thanks

----------------------------------------
From: "Ronda K" < rondapedersongmail.com">rondapedersongmail.com>
Sent: Tuesday, February 26, 2008 10:42 PM
To: aspnetaspadvice.com">aspnetaspadvice.com
Subject: [aspnet] Re: Syntax Error for Beginner

You will wants something like this

ImageUrl="~/Images/NavImages/<;%#EVal(&quot;Clientlogof")&quot; />
OR
&lt;img src="~/Images/NavImages/<;%# Eval(";Clientlogof")&quot;>
or use an imagebutton

On Tue, Feb 26, 2008 at 8:21 PM, Mike Elmalem - Efactory Inc < mikeefactory.ca">mikeefactory.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=&quot;server&quot;
ImageUrl="~/Images/NavImages/Client1.gif&quot; /> but I would like to replace

&quot;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/lists/

--
If you want to call me click here:
https://me.vonage.com/rka

--- List Settings ---
http://aspadvice.com/lists/




--- List Settings ---
http://aspadvice.com/lists/




--
If you want to call me click here:
https://me.vonage.com/rka --- List Settings --- http://aspadvice.com/lists/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )