DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 00:18:02 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Alhambra Eidos Kiquenet
          2    Ladislav Mrnka


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
Date:Mon, 20 Aug 2007 00:18:02 -0700   Author:  

RE: Eval in ItemTemplate   
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
> 
Date:Mon, 20 Aug 2007 01:40:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us