Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ImageButton and Panel at runtime

Thread Tools

ImageButton and Panel at runtime

Christian Ista
Posts: n/a

I have a database, a simple table called "FAQ" in this table 3 fields "ID",

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 ?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Java Control Panel in START menu->Control Panel: Diff javacpl.cpl and javacpl.exe? Robin Wenger Java 0 08-18-2011 06:38 AM
changing ImageButton image url at runtime ASP .Net 1 01-27-2005 03:55 PM
Add a picture to an imagebutton control at runtime Jason ASP .Net 1 06-11-2004 10:04 AM
Finding a panel's size and/or storing extra data with the panel. Ian Hobson Ruby 1 12-07-2003 09:45 PM
Grid Layout Panel and Panel in the Designer Chris ASP .Net Web Controls 0 08-28-2003 03:28 PM