473,587 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic Text

How can I create a link so that when it is clicked, a
description appears. For example.

Microsoft <== when this is clicked the following text
appears below it.
"Number one software company"

I have a method of doing this but it seems very long. I
could create one LinkControl and a Label control. Then
in the page behind, I handle the OnClick event for the
Link and make the Label visible then set the text. Once
I click it again, the text vanishes. This will require
me to have a flag for each link which I then test.
Depending on the test, I eitehr make the text visible or
invisible. This might work but I was hoping for an
easier way to do this.

I'm creating an FAQ page and when someone clicks a FAQ,
the explanation appears below. Then once it's clicked
again, the explanation disappears.

-- Prince
Nov 18 '05 #1
3 1077
Take a look at dynamicdrive.co m in the navigation section - they have a nice
menu that does this kind of thing without the postbacks of server side
processing - might give you some ideas.

Joe
"Prince Hoff Jr." <pr******@cox.n et> wrote in message
news:01******** *************** *****@phx.gbl.. .
How can I create a link so that when it is clicked, a
description appears. For example.

Microsoft <== when this is clicked the following text
appears below it.
"Number one software company"

I have a method of doing this but it seems very long. I
could create one LinkControl and a Label control. Then
in the page behind, I handle the OnClick event for the
Link and make the Label visible then set the text. Once
I click it again, the text vanishes. This will require
me to have a flag for each link which I then test.
Depending on the test, I eitehr make the text visible or
invisible. This might work but I was hoping for an
easier way to do this.

I'm creating an FAQ page and when someone clicks a FAQ,
the explanation appears below. Then once it's clicked
again, the explanation disappears.

-- Prince

Nov 18 '05 #2
This site offers a free server control that does what you are after

http://www.excentricsworld.com/Custo...eaterDemo.aspx
"Prince Hoff Jr." <pr******@cox.n et> wrote in message
news:01******** *************** *****@phx.gbl.. .
How can I create a link so that when it is clicked, a
description appears. For example.

Microsoft <== when this is clicked the following text
appears below it.
"Number one software company"

I have a method of doing this but it seems very long. I
could create one LinkControl and a Label control. Then
in the page behind, I handle the OnClick event for the
Link and make the Label visible then set the text. Once
I click it again, the text vanishes. This will require
me to have a flag for each link which I then test.
Depending on the test, I eitehr make the text visible or
invisible. This might work but I was hoping for an
easier way to do this.

I'm creating an FAQ page and when someone clicks a FAQ,
the explanation appears below. Then once it's clicked
again, the explanation disappears.

-- Prince

Nov 18 '05 #3
That is exactly what I wanted. I would have thought
Microsoft would have created a control just for something
like this.
-- Prince
-----Original Message-----
This site offers a free server control that does what you are after
http://www.excentricsworld.com/Custo...ls/FaqRepeater Demo.aspx

"Prince Hoff Jr." <pr******@cox.n et> wrote in message
news:01******* *************** ******@phx.gbl. ..
How can I create a link so that when it is clicked, a
description appears. For example.

Microsoft <== when this is clicked the following text
appears below it.
"Number one software company"

I have a method of doing this but it seems very long. I could create one LinkControl and a Label control. Then
in the page behind, I handle the OnClick event for the
Link and make the Label visible then set the text. Once I click it again, the text vanishes. This will require
me to have a flag for each link which I then test.
Depending on the test, I eitehr make the text visible or invisible. This might work but I was hoping for an
easier way to do this.

I'm creating an FAQ page and when someone clicks a FAQ,
the explanation appears below. Then once it's clicked
again, the explanation disappears.

-- Prince

.

Nov 18 '05 #4

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

Similar topics

1
2390
by: Guinness Mann | last post by:
When you guys talk about "dynamic SQL," to what exactly are you referring? Is dynamic SQL anything that isn't a stored procedure? Specifically, I use ASP.NET to communicate with my SQL Server 2000, using an SqlConnection object to open the database and an SqlCommand object to transfer my SQL text to the database. Is this the "dynamic...
1
17652
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
7
1883
by: Abraham Luna | last post by:
how do i stop the dynamic validators from breaking explorer if i use a dynamic validator and move to a different control it breaks explorer and i can type in the page when i'm not supposed to. thank you.
2
2928
by: deejayquai | last post by:
Hi I'm trying to produce a report based on a dynamic crosstab. Ultimately i'd like the report to actually become a sub report within a student end of year record of achievement. The dynamic sub-report will capture what grades the student has achieved in a list of different subjects and the reason I need it to be dynamic is that students...
2
6344
by: JWL | last post by:
Hi I need to create a bunch of sites with slightly dynamic CSS. Basically, all the image paths in the CSS need to be dynamic, depending on the values of certain ASP variables. I can think of 3 ways to do this: 1. Write a script to create a semi-dynamic CSS file, which will be run whenever we need to make changes to the ASP variables...
7
8212
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
9
2938
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I got the core of the javascript from here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm I noticed in the demo that sometimes the...
1
4646
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by pressing Remove button the selecetd row will be...
0
3488
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row...
2
5013
by: englishman69 | last post by:
Hello, I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation is this, I have a page which uses multiple postbacks to generate a list of dynamic text boxes with appropriate labels. However, when I do the final...
0
8347
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...
1
7973
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...
0
8220
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...
0
6626
agi2029
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...
1
5718
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...
0
3844
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...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
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...

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.