The server tag is not well formed

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?
 
K

Karl Seguin

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
 
K

Karl Seguin

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top