Quotes: The server tag is not well formed.

G

Guest

Hi mister,

In my itemtemplate:

<tr

id="filaListado"

runat="server"

name='<%# "filaListado" + Eval("idtareasworkflow") %>'

class='<%# Container.ItemIndex % 2 == 0 ? "ItemStyle" :
"AlternatingItemStyle" %>'

onclick='<%# String.Format("SeleccionarFilaListado(this,{0},'{1}');",
Eval("idtareasworkflow"), Eval("Offset") ) %>'

I get this error: The server tag is not well formed.

But it's right if

onclick='<%# String.Format("SeleccionarFilaListado(this,{0},{1});",
Eval("idtareasworkflow"), Eval("Offset") ) %>'

ATTENTION: replace '{1}' by {1} , and it's works fine.

The problem is the quote '.

Any help about it ? I'll be very grateful for any solution and comments.
Thanks in advance.

Greetings and Regards.
 
G

Guest

Try doing
\"{0}\"


Alhambra Eidos Kiquenet said:
Hi mister,

In my itemtemplate:

<tr

id="filaListado"

runat="server"

name='<%# "filaListado" + Eval("idtareasworkflow") %>'

class='<%# Container.ItemIndex % 2 == 0 ? "ItemStyle" :
"AlternatingItemStyle" %>'

onclick='<%# String.Format("SeleccionarFilaListado(this,{0},'{1}');",
Eval("idtareasworkflow"), Eval("Offset") ) %>'


I get this error: The server tag is not well formed.

But it's right if

onclick='<%# String.Format("SeleccionarFilaListado(this,{0},{1});",
Eval("idtareasworkflow"), Eval("Offset") ) %>'

ATTENTION: replace '{1}' by {1} , and it's works fine.

The problem is the quote '.

Any help about it ? I'll be very grateful for any solution and comments.
Thanks in advance.

Greetings and Regards.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top