A FAQ on my web page

  • Thread starter Thread starter Antonio
  • Start date Start date
A

Antonio

I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?
 
Antonio said:
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?

just use a SPAN or DIV. Passing in the text is easy, bury an <asp:Label
into it, but the rest is clientside javascript, I'd suggest hitting a
javascript group....
 
First read the asp.net quickstarts.

Dont expect people to make everything for you here. People doesnt post
complete solutions only suggestions.
 
I would like to create a FAQ feature for my web page that populates
from a table in the sql server. My table would have a column for a
question and one for answer. On the web page I would like to only show
the questions listed and when the user clicks the question javascript
would expand the answer below it. Then if they click the question the
answer disappears again.

How do I do the javascript part and fill it with the data from the
server?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top