The server tag is not well formed

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

<asp:ImageButton ID="ImageButton2" runat="server"
OnClientClick="javascript:menu('<%# Eval("TableId")');return
false;" />


this is what i want to use!!!

but it occurs just one error like below

Error 5 The server tag is not well formed.
C:\Project2005\WebSite\ks\Book\Book.ascx 74

how can i have to do?
 
I ignore those messages when possible (which you can probably safely do in
this case).

to fix it though, you should try:

OnClientClick='<%# "menu('" + Eval("TableId") + "'); return"%>'

karl
 
Sorry, what a pain :)

This worked for me:

<asp:ImageButton id="x" OnClientClick=<%# "menu('" + Eval("TableId") +
"');return false;"%> />

Karl
 

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

Back
Top