AJAX Accordion

Hello Experts,

I have the following HTML markup below that is using the ASP.NET AJAX Accordion Control. It works fine, except that I would like to make the formatting of it nicer. Perhaps I'm using the wrong Tool.

I would like to have the "apWorkLocation" and "apHomeLocation" AccordionPane to sit beside each other rather than stacked on top like they are now. I would also like to know if I could make those two AccordionPanes look like two RadioButton options that when clicked it will then display the contents of that AccordionPane.


<h1>NEW USER ACCOUNT</h1>
                <p>Employees must complete this form in order to schedule classes to take.</p>
                <asp:Label ID="lblName" runat="server" CssClass="CourseDescTitle" Text="Name"></asp:Label>
                <br />
                <asp:TextBox ID="txtName" Width="300" CssClass="txtCourseInsert" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblEntity" runat="server" CssClass="CourseDescTitle" Text="Employer"></asp:Label>
                <br />
                <asp:DropDownList ID="ddlEntity" CssClass="ddlCourseInsert" Width="307" runat="server"></asp:DropDownList>
                <br />
                <br />
                <asp:Label ID="lblContactMethod" runat="server" CssClass="CourseDescTitle" Text="Contact Method"></asp:Label>
                <br />
                <asp:Accordion ID="aContactMethod" SelectedIndex="0" AutoSize="None" runat="server">
                    <Panes>
                        <asp:AccordionPane ID="apWorkLocation" runat="server">
                        <Header>Work Address</Header>
                            <Content>
                                <br />
                                <asp:Label ID="lblBuildingLocation" runat="server" CssClass="CourseDescTitle" Text="Building Location"></asp:Label>
                                <br />
                                <asp:DropDownList ID="ddlBuildingLocation" CssClass="ddlCourseInsert" Width="307" runat="server"></asp:DropDownList>
                                <br />
                                <br />
                                <asp:Label ID="lblPhoneExtension" runat="server" CssClass="CourseDescTitle" Text="Phone Extension"></asp:Label>
                                <br />
                                <asp:TextBox ID="txtPhoneExtension" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                                <br />
                                <br />
                            </Content>
                        </asp:AccordionPane>
                    </Panes>
                    <Panes>
                        <asp:AccordionPane ID="apHomeLocation" runat="server">
                        <Header>Home Address</Header>
                            <Content>
                                <br />
                                <asp:Label ID="lblStreetAddress" runat="server" CssClass="CourseDescTitle" Text="Street Address"></asp:Label>
                                <br />
                                <asp:TextBox ID="txtStreetAddress" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                                <br />
                                <br />
                                <asp:Label ID="lblCity" runat="server" CssClass="CourseDescTitle" Text="City"></asp:Label>
                                <br />
                                <asp:TextBox ID="txtCity" Width="300" CssClass="txtCourseInsert" runat="server"></asp:TextBox>
                                <br />
                                <br />
                                <asp:Label ID="lblState" runat="server" CssClass="CourseDescTitle" Text="State"></asp:Label>
                                <br />
                                <asp:DropDownList ID="ddlState" CssClass="ddlCourseInsert" Width="307" runat="server"></asp:DropDownList>
                                <br />
                                <br />
                                <asp:Label ID="lblPhone" runat="server" CssClass="CourseDescTitle" Text="Phone"></asp:Label>
                                <br />
                                <asp:TextBox ID="txtPhone" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                                <br />
                                <br />
                           </Content>
                        </asp:AccordionPane>
                    </Panes>
                </asp:Accordion>
                <br />
                <br />
                <asp:Label ID="lblEmailAddress" runat="server" CssClass="CourseDescTitle" Text="Email Address"></asp:Label>
                <br />
                <asp:TextBox ID="txtEmailAddress" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblConfirmEmail" runat="server" CssClass="CourseDescTitle" Text="Confirm Email Address"></asp:Label>
                <br />
                <asp:TextBox ID="txtConfirmEmail" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblUsername" runat="server" CssClass="CourseDescTitle" Text="Username"></asp:Label>
                <br />
                <asp:TextBox ID="txtUserName" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Label ID="lblPassword" runat="server" CssClass="CourseDescTitle" Text="Password"></asp:Label>
                <br />
                <asp:TextBox ID="txtPassword" CssClass="txtCourseInsert" Width="300" runat="server"></asp:TextBox>

Open in new window

LVL 4
asp_net2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

strickddCommented:
Those options are built into the accordion object. you would have to write your own custom control that would behave that way. It would take quite a bit of CSS and javascript, but can be done if that is what you need.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
asp_net2Author Commented:
Is there another way to do that using other ASP.NET controls?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.