Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Eval in ItemTemplate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alhambra Eidos Kiquenet - 20 Aug 2007 08:18 GMT
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
Signature

http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
www.trabajobasura.com/solusoft

Ladislav Mrnka - 20 Aug 2007 09:40 GMT
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

> Hi, misters,
>
[quoted text clipped - 32 lines]
>
> Any help will be appreciated

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.