Cant you use Javascript tags in asp:table?

  • Thread starter Kristoffer Arfvidson
  • Start date
K

Kristoffer Arfvidson

HI!
I have the following javascript events in my normal tables.
onMouseOver,onMouseOut and onClick
Now, when I try to put this in my asp:tablerow it just gets an error msg
that literal text is not allowed in tablerow... :(
When I tryed to put this table as a normal <table> it works, but, for some
reason it automaticly makes an </td></tr> before the new asp:table comes
in...
therefore not achieving my goals in design... :(

Here comes the html part, its an itemtemplate of an datagrid...

Please, help med with this, I can´t get this to work, somehow...

Yours: Kristoffer

<ItemTemplate>
<asp:Table Runat="server" borderwidth="0" Cellpadding="0"
Cellspacing="0" Width="100%" style="FONT-SIZE: 11px; FONT-FAMILY: Verdana,
Arial, sans-serif">


<asp:tableRow onMouseOver='mOvr(this,"#9090FF");'
onMouseOut='mOut(this,"");' onClick="jsfuncreadart('<%#
Container.DataItem("ID") %>','<%# Container.DataItem("Type") %>');">
<asp:TableCell width="10" verticalalign="top"><img
src="../bilder/tomgif.gif" width="1" height="8"><br><img
src="../bilder/tomgif.gif" width="1" height="1"><img
src="../bilder/link_pil.gif" width="8"
height="7"></asp:TableCell><asp:TableCell>

<asp:Table RUNAT="SERVER" ID="tableItem" width="100%"
borderwidth="0" cellspacing="0" cellpadding="0">
<asp:TableRow><asp:TableCell Horizontalalign="right"><img
src="../bilder/tomgif.gif" width="1" height="3"></asp:tablecell>
</asp:tableRow>
</asp:Table>
</asp:TableCell>
</asp:tableRow>
</asp:Table>
</ItemTemplate>
 

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