Quotes: The server tag is not well formed.

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top