473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

C# ASP.Net show/hide tables

I have an ASP.Net 2.0 Repeater replicating tables. I want users to be able to click on an item and have the "hidden" table drop down beneath the row where the user just clicked.

My problems are that with the repeater I cannot reference the 'ID' of items very well as they change to whatever the .NET control wants. I also tried adding <% %> in my ID to attempt to control them, however it does not seem to like that very much.

Any ideas on how to go about this? Yes, I am trying javascript, but I cannot reference the items on the page without finding a way to establish the ID.

Thanks for any ideas on the topic.
Jun 1 '07 #1
1 2163
Frinavale
9,735 Expert Mod 8TB
I have an ASP.Net 2.0 Repeater replicating tables. I want users to be able to click on an item and have the "hidden" table drop down beneath the row where the user just clicked.

My problems are that with the repeater I cannot reference the 'ID' of items very well as they change to whatever the .NET control wants. I also tried adding <% %> in my ID to attempt to control them, however it does not seem to like that very much.

Any ideas on how to go about this? Yes, I am trying javascript, but I cannot reference the items on the page without finding a way to establish the ID.

Thanks for any ideas on the topic.
Hi Joe,

You could somehow place your hidden table into a Panel and then control its visibility state using JavaScript and CSS.
Check out this thread...it might help you.

-Frinny
Jun 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ricardo.PT | last post by:
Hi all, I want to hide/show buttons based in a query that I pass to my form via webservice with a dataset populated. Problem is when I try to hide/show myButton I have a Invalid Cast Error, anyone...
5
by: Zambien | last post by:
Hi all, Here's my problem. I have tables that are using the menu/submenu idea for hiding rows. This works fine in IE (of course) and does show/hide correctly in netscape, but as soon as the...
10
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
1
by: le_sloth | last post by:
Hi I'm generating a series of reports from an application that will be published on a client's intranet. The idea is that each of these reports is arranged into major product groups,...
3
by: Miguel Dias Moura | last post by:
Hello, I have 2 tables in a web page. I want to show first table and hide second when the URL parameter result=ok. And of course the oposite when result=notok. How to do this?
5
by: dje | last post by:
In the OnClick event on a radioButtonList, I run a javascript to show/hide the appropriate div along with a submit button, which displays as expected. The problem is the submit no longer works on...
1
by: lydia sista via DotNetMonster.com | last post by:
hi! help... How do you show/hide item's data? Like sale item on product catalogue. I want to show the sale image when the status of product is on sale. in my catalogue I use datalist:...
6
by: michael941 | last post by:
Hi, I have 2 tables in an html page. I have div them separately and id them as id1 and id2. I have a link there. What I need is click the link to hide one table and show the other and verse when...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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...

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.