471,089 Members | 1,116 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Cant you use Javascript tags in asp:table?

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

<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"

<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>
Nov 18 '05 #1
0 1329

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Drew Pawlik | last post: by
2 posts views Thread by Kevin | last post: by
3 posts views Thread by Marty McDonald | last post: by
4 posts views Thread by coleenholley | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by Leo Pape | last post: by
2 posts views Thread by clickon | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.