Looking for a FAQ control ...

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Looking for a FAQ control ...

    I want to pull a list of FAQs (questions and answers) from a database and
    display them on a web page.

    I'd like the list to initially appear as just a list of questions, when the
    client clicks on a question it will expand and show the answer (client side
    script).

    Where can I find a web control that will do this ?

    Thanks!

    --
    Michael Tissington
    Oaklodge Technologies
    [url]http://www.oaklodge.com/technology[/url]



    Michael Tissington Guest

  2. Similar Questions and Discussions

    1. Possible to create a composite control that has a child control that is a validator that validates the composite control itself?
      I am attempting to create a composite control which has a label, followed by an optional error message, followed by two text boxes. I have...
    2. Composite control delegating databound templated features to child <asp:repeater> control
      Hi Everybody, I'm creating a composite control in C# that basically renders a bunch of webcontrols such as <asp:Label />, <asp:Repeater />,...
    3. Page Load fired 3 times Web user control is embedded in a custom control
      Hi, I have built a custom control that build a table with 3 cells in it. The custom control is designed to add all child controls to cell#2,...
    4. ControlDesigner not invoked on custom control when control is rendered within another custom control
      I have a custom control that has a simple designer (derived from System.Web.UI.Design.ControlDesigner) associated with it (using the...
    5. Using Table control in a custom composite control. Control does not render properly in design time.
      All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control...
  3. #2

    Default Re: Looking for a FAQ control ...

    A panel is rendered as a DIV. To see this look at the rendered HTML of a
    page with a panel on it.

    I recommend you use a DataList, to define a template. I would use a div,
    with a style="display:none" (setting a Panel's Visible property to False
    doesn't render it on the client at all). Then, your javascript for the <a>
    link, has to find the corresponding DIV, and set its display to 'block' or
    'inline' (I think they are rendered the same way). If you click on the <a>
    link again, you will probably want to set it back to 'none'.

    "Michael Tissington" <michael@nospam.com> wrote in message
    news:%23HXsAgrWDHA.3268@tk2msftngp13.phx.gbl...
    > Kevin,
    >
    > Thanks for the idea - I'm a little confused by your comment - you talk
    about
    > both Panels and divs - should I just be using divs because I thought Panel
    > was a server side control?
    >
    > --
    > Michael Tissington
    > Oaklodge Technologies
    > [url]http://www.oaklodge.com/technology[/url]
    >
    > "Kevin Spencer" <kevin@takempis.com> wrote in message
    > news:%23S3Pv%23pWDHA.2568@tk2msftngp13.phx.gbl...
    > > It would be a relatively simple matter to build such an app without a
    > > third-party control Essentially, you want to put the questions into the
    > > page, with the answers below them in Panels that are either visible or
    > > hidden. The questions have hyperlinks that use JavaScript to toggle the
    > > "visible" property of the divs.
    > >
    > > --
    > > HTH,
    > >
    > > Kevin Spencer
    > > Microsoft MVP
    > > .Net Developer
    > > [url]http://www.takempis.com[/url]
    > > Complex things are made up of
    > > lots of simple things.
    > >
    > > "Michael Tissington" <michael@nospam.com> wrote in message
    > > news:uPFuzHpWDHA.1872@TK2MSFTNGP12.phx.gbl...
    > > > I want to pull a list of FAQs (questions and answers) from a database
    > and
    > > > display them on a web page.
    > > >
    > > > I'd like the list to initially appear as just a list of questions,
    when
    > > the
    > > > client clicks on a question it will expand and show the answer (client
    > > side
    > > > script).
    > > >
    > > > Where can I find a web control that will do this ?
    > > >
    > > > Thanks!
    > > >
    > > > --
    > > > Michael Tissington
    > > > Oaklodge Technologies
    > > > [url]http://www.oaklodge.com/technology[/url]
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Marina Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139