The server tag is not well formed

G

Guest

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'll try change quotes " for ', and I get error.
Any help, please

Regards.
 
B

bruce barker

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.

-- bruce (sqlwork.com)
 
G

Guest

try this

<tr id='prefix<%=Eval("id_middle")%>' onclick='DoAction(<%= "'" +
Eval("ContolID" + "'")'></tr>
 
G

Guest

Hi, mister,

I tried what you say in your post 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top