473,406 Members | 2,867 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,406 software developers and data experts.

Eval in ItemTemplate

Hi, misters,

I'll try put an attribute runat="server" to TR in ItemTemplate of DAtalist:

....
<ItemTemplate>
<tr id="filaListado<%# Eval("idtareasworkflow") %>"
onclick="SeleccionarFilaLis('<%# Eval("idtareasworkflow") %>', '<%#
Eval("Offset") %>');"
...

but I get error "The server tag is not well formed"

I tried with this post

"bruce barker" wrote:
binding expressions (<%# %>) can only be used on controls with
runat=server. also, they must be the complete attribute value
(att="<%#bind_expression%>"). if you need to concat, do it in the
expression.
but I get:

Parser Error Message: The server tag is not well formed.

Line 199: </HeaderTemplate>
Line 200: <ItemTemplate>
Line 201: <tr id="<%=
"filaListado" + Eval("idtareasworkflow") %>"

I've tried too with <%# %>, and <%= %>, but the same error.

Any help, please ? Thanks in advanced.
Any help will be appreciated
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
www.trabajobasura.com/solusoft

Aug 20 '07 #1
1 5205
Hi,
your tag is not well formed because you have too many quotation marks -
always use this syntax: attribute='<%# Eval("...") %>' . As you can see I am
using only one pair of queotation marks and one pair of apostrophes.

Any way your code will not work because you can't bind to ID property.

Regards,
Ladislav

"Alhambra Eidos Kiquenet" wrote:
Hi, misters,

I'll try put an attribute runat="server" to TR in ItemTemplate of DAtalist:

...
<ItemTemplate>
<tr id="filaListado<%# Eval("idtareasworkflow") %>"
onclick="SeleccionarFilaLis('<%# Eval("idtareasworkflow") %>', '<%#
Eval("Offset") %>');"
...

but I get error "The server tag is not well formed"

I tried with this post

"bruce barker" wrote:
binding expressions (<%# %>) can only be used on controls with
runat=server. also, they must be the complete attribute value
(att="<%#bind_expression%>"). if you need to concat, do it in the
expression.

but I get:

Parser Error Message: The server tag is not well formed.

Line 199: </HeaderTemplate>
Line 200: <ItemTemplate>
Line 201: <tr id="<%=
"filaListado" + Eval("idtareasworkflow") %>"

I've tried too with <%# %>, and <%= %>, but the same error.

Any help, please ? Thanks in advanced.
Any help will be appreciated
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
www.trabajobasura.com/solusoft
Aug 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michelle Keys | last post by:
Subject: DataBinder.Eval Error! Server Error in '/MSPOS' Application. ------------------------------------------------------------------------ -------- DataBinder.Eval:...
5
by: bg | last post by:
Hi! How do I check if "date" exists before using that code? I've built a RSSreader and sometimes there's a date in it and sometimes not. How can I check if it exists to avoid crash...
0
by: darrel | last post by:
I'm stuck on this one and I'm hoping it's simple user error on my part and I have a typo somewhere. ;o) I have a repeater control that's getting data from the dataset in the codebehind: ...
3
by: Eric Newton | last post by:
Given databinding an array of System.Version types: Given that "SomeObject" type has a Version property: public class SomeObject { public Version Version { get; } public string Description {...
1
by: Eric Newton | last post by:
Given databinding an array of System.Version types: Given that "SomeObject" type has a Version property: public class SomeObject { public Version Version { get; } public string Description {...
1
by: Benton | last post by:
Hi there, I have a HyperLink control inside a DataList's ItemTemplate: <asp:DataList ID="lstDatos" runat="server"> <ItemTemplate> <asp:HyperLink ID="lnkName" runat="server" CssClass="Link"...
1
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
0
by: Zeba | last post by:
Hi, Can you tell me how does the Eval function know where to find EventID in the following code ? Also, isn't this Eval function same as the DataBinder.Eval ? But MSDN only shows Eval() to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.