Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
How use WebExplorerBar for simple 1-to-1 FAQ expand/collapse, please
posted

I am trying to use the WebExplorerBar to display a list of questions, and then expand when a question is clicked to reveal the answer.

I followed an example I found online and works fine, but it involves a parent and child table and datarelation between the two.  My scenario is much simpler as is a 1-to-1 relationship between question and answer.  Thus, they are both in a single table:

FaqId
FaqQuestion
FaqAnswer

I suppose I could make a copy of the table and fudge an FK column in the second, etc., but that seems like a hack.  Is there a simple way to do what I want to do given my simple 1-to-1 relationship between question and answer?

Thanks.

P.S. Or, maybe the WebExplorer bar is the wrong control for this in the first place?