473,621 Members | 2,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cant you use Javascript tags in asp:table?

HI!
I have the following javascript events in my normal tables.
onMouseOver,onM ouseOut 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='mO vr(this,"#9090F F");'
onMouseOut='mOu t(this,"");' onClick="jsfunc readart('<%#
Container.DataI tem("ID") %>','<%# Container.DataI tem("Type") %>');">
<asp:TableCel l 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"><im g
src="../bilder/tomgif.gif" width="1" height="3"></asp:tablecell>
</asp:tableRow>
</asp:Table>
</asp:TableCell>
</asp:tableRow>
</asp:Table>
</ItemTemplate>
Nov 18 '05 #1
0 1391

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1164
by: Stephen | last post by:
I have the below asp table and I would like to be able to call up the lblAddress1 label with in the asp table in the code behind page. I tried doing this.lblAddress1 and it didn't work and I tried doing this.tblSearchAddresses.lblAddress1 and it didn't work. Has anyone an idea how I call this lable with a asp table. Thanks in advance for any help anyone can give me. <asp:table id="tblSearchAddresses" Runat="server" Width="100%">...
0
464
by: Stephen | last post by:
I have been getting on well with help from this forum trying to create an array list and work with it. Everything is working fine apart from displaying my array list items into the labels in my asp table. The asp table has numerous rows and each row has a label item within it. Im finding it impossible to get something to work which adds the newest item in the array list to the next row in the asp table. the first time the button is...
0
1625
by: Drew Pawlik | last post by:
Hey guys, I'm having a problem and need some help. I have an <asp:table ...> in my web page, and this table has 2 rows, the first being a header row, and the second row containing an <asp:button> to add rows to the table. Well, when I add the first row it shows up, but if I try to add any more rows, the one I added + the rest of them all disappear. I tried saving the table to a Session variable, but that didn't work. I'm not really sure...
2
2669
by: Kevin | last post by:
I am just learning asp.net and ran into a problem that I have not been able to resolve. I have a web form with an html table that houses an asp:label, asp:textbox and asp:button within. I had the click event of the asp:button working. I then decided to drop an asp:table on the form and then added the three component mentioned above into the asp:table. Now I cannot find a way to set the click even of the asp:button anymore. In fact,...
3
12006
by: Marty McDonald | last post by:
I have <asp:Table... </asp:Table> on my webform. In codebehind, I populate a DataTable whose data should appear in the asp:Table. I created my own code to populate the asp:Table with the DataTable, then I discovered the asp:Table has a DataBind method. But the method takes no args and so I'm confused how to use it. Is there a link to see how DataBind works for asp:Table? Should I just use my own code anyway? Thanks... Here's my...
4
1938
by: coleenholley | last post by:
I asked the question yesterday: > HI All :-) > > I don't know if I will be able to do this type of formatting, but what I > need to do is have a table row where the text wraps (This is easy) the first > line of text is font size 10 pt and the second (wrapped text) is 6 pt. I > know how to create a style sheet to get all of my font one size or the > other, but does any one have any suggestions on how to do this?
4
3930
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create the element outside of the table and then using cut & paste in HTML View to move it to the desired location, or by manually typing the code in using HTML View. The first technique sometimes does not automatically update the list of elements...
0
1106
by: Leo Pape | last post by:
Hello, When I place a <asp:table> in a formview (In the edititemtemplate or insertitemtemplate) I'm not able to update data anymore if the bound controls are placed in that table When I place the controls in a general html table it works fine My code that dos not work: <EditItemTemplate>
2
2376
by: clickon | last post by:
I am confused about the way in which asp:table objects work. When a control is within an asp table it generally appears to be in the scope of the tables parent control. E.g. if i have a page that consists of an asp table called MyTable containing a textbox control call MyTextBox then i can access MyTextBox directly from the PageLoad event handler without having to use MyTable.FindControl(MyTextBox). MyTextBox can also be used for a...
0
8653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8597
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8306
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8457
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6101
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4065
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1460
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.