Home All Groups Group Topic Archive Search About

The server tag is not well formed

Author
24 Nov 2005 3:48 PM
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?

Author
24 Nov 2005 4:03 PM
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

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quoteHide quote
"mike" <somequest***@gmail.com> wrote in message
news:u3ChI6Q8FHA.1028@TK2MSFTNGP11.phx.gbl...
>   <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?
>
>
>
Are all your drivers up to date? click for free checkup

Author
24 Nov 2005 6:47 PM
mike
Thank you  Karl

but it's not working .....the same reason before


Show quoteHide quote
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Os3RdDR8FHA.3132@TK2MSFTNGP12.phx.gbl...
>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
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "mike" <somequest***@gmail.com> wrote in message
> news:u3ChI6Q8FHA.1028@TK2MSFTNGP11.phx.gbl...
>>   <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?
>>
>>
>>
>
>
Author
24 Nov 2005 8:03 PM
Karl Seguin
Sorry, what a pain :)

This worked for me:

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

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quoteHide quote
"mike" <somequest***@gmail.com> wrote in message
news:O9mcPeS8FHA.1140@tk2msftngp13.phx.gbl...
> Thank you  Karl
>
> but it's not working .....the same reason before
>
>
> "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
> wrote in message news:Os3RdDR8FHA.3132@TK2MSFTNGP12.phx.gbl...
>>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
>>
>> --
>> MY ASP.Net tutorials
>> http://www.openmymind.net/
>>
>>
>> "mike" <somequest***@gmail.com> wrote in message
>> news:u3ChI6Q8FHA.1028@TK2MSFTNGP11.phx.gbl...
>>>   <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?
>>>
>>>
>>>
>>
>>
>
>

Bookmark and Share