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

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 1065
Take a look at dynamicdrive.com 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.net> 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.net> 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.net> 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
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...
1
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...
7
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....
2
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...
2
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...
7
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
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...
1
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...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.