Ask a Question related to ASP.NET General, Design and Development.
-
Michael Tissington #1
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
-
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... -
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 />,... -
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,... -
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... -
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... -
Marina #2
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...about> Kevin,
>
> Thanks for the idea - I'm a little confused by your comment - you talkwhen> 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...> and> > 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> > > display them on a web page.
> > >
> > > I'd like the list to initially appear as just a list of questions,>> > the> > side> > > client clicks on a question it will expand and show the answer (client> >> > > 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



Reply With Quote

