Dynamic Text

  • Thread starter Thread starter Prince Hoff Jr.
  • Start date Start date
P

Prince Hoff Jr.

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
 
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
 
That is exactly what I wanted. I would have thought
Microsoft would have created a control just for something
like this.


-- Prince
 
Back
Top