473,320 Members | 1,883 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,320 software developers and data experts.

ImageButton and Panel at runtime

Hello,

I have a database, a simple table called "FAQ" in this table 3 fields "ID",
"QUESTION" and "ANSWER".

I'd like for all record return by a query display the question next to an
Imagebutton and under this question, the answer is placed in a panel, this
panel is not visible by default.

I'd like when I click on the button show the panel (with the answer in it).

That's work fine when I do all at design time, place, for example 3 panels
and 3 Imagebutton.

But I'd like do that at rutime, if the query return 3 records (example ID
=8, ID = 15, ID = 25) create ImageButton called imgButton8, imgButton15 and
imgButton25. and create 3 panels called panelA8, panelA15 and panelA25.

How to do that ?

Thanks,
Nov 18 '05 #1
0 1040

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

Similar topics

1
by: Patrick Marti | last post by:
Is it possible to call a function from a ImageButton wich I create at runtime? That would be really interesting Many thanks for any suggest. Greetings Patrick Marti
9
by: David | last post by:
hello... i want to renove all controls from panel... i use this: foreach (Control c in panel.Controls) panel.Controls.Remove(c); but it's doesn't work... -- not all controls are removed...
1
by: Tee | last post by:
Hi, I have a server control Table with each row will contain a dynamic created ImageButton. And I have a private sub with the proper delegate of an ImageButton click which handle nothing....
3
by: Charlie | last post by:
Hi: I would like to attach client side code to an imagebutton that is rendered in a Reapeater control. The client code will simply confirm if users wants to continue with an operation. In this...
3
by: sck10 | last post by:
Hello, When a person subits my web page, I do a simple check (validation) and if there are any errors, I create a variable (strValidateText) and set that value to a label on the form. What I...
1
by: blarfoc | last post by:
I am using the ImageButton to represent tabs on my webform. I have 5 tabs. Each tab can have 2 images. A clicked imaagge and a unclicked image. When I click on a image that is not clicked I...
0
by: Varangian | last post by:
Hi there, I'm using C# for a webapplication. In my page I'm building ImageButtons dynamically on Page_Load. However I want to access these Images at runtime for example when a user clicks a...
3
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, Using ASP .Net, I'm trying to create a ImageButton when the user clicks on a button, this is my code: protected void logout_btn_Click(object sender, ImageClickEventArgs e) {
14
by: Adam Sandler | last post by:
I have a class with a method which returns a panel. The panel was not created with the visual editor, I coded it by hand -- because some of the content on the panel can be dynamic and thus I chose...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.