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, 0 1049 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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.
After each ImageButton is created, I addhandler the ImageButton to the
private sub, which gave me no error.
But on the runtime, whenever the imagebutton is clicked, it seems like none
|
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 case it would be deleting a record.
For buttons that are placed on page at design time, I can use Add.Attributes
to achieve the above. However, controls in Reapeater are created at
runtime. How do I do this?
|
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 am trying to do create an image button
along with the html. I am getting the error: Operator '&' is not defined
for types 'String' and 'System.Web.UI.WebControls.ImageButton'.
| |
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 want to change
the image url. I am using the command argument of the ImageButton to
hold the name of the image so I know to just add "_up.gif" or "_dn.gif"
But when I change the imageurl, nothing seems to happen. How do i
make the change appear on...
|
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 button for example.
I'm trying to use the FindControl but it returns a
System.Web.UI.Control not an System.Web.UI.WebControls, and altough
using GetType() function it returns that the found control is an
ImageButton. I need that further step to be...
|
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)
{
|
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 to do it that
way.
At any rate, I have an event handler for a button which instantiates
an object of that class I mentioned and calls the method to return the
panel. I put the panel on form1 like so:
// it's really not called 'Class', I...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |