---
title: "Accordion using BootStrap in ASP.Net"  
description: "In this blog , I’m explaining how to make  Accordion using Bootstrap in ASP.Net  Example  :-In This Example we Create Accordion With Help BootStrap Fi"  
author: "Anonymous User"  
published: 2014-01-15  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/626/accordion-using-bootstrap-in-asp-dot-net  
category: "bootstrap"  
tags: ["bootstrap"]  
reading_time: 2 minutes  

---

# Accordion using BootStrap in ASP.Net

In this blog , I’m explaining how to make [Accordion](https://answers.mindstick.com/qa/93711/what-is-accordion-in-css) using Bootstrap in ASP.Net\

##### Example :-

##

In This Example we Create Accordion With Help [BootStrap File](https://www.mindstick.com/forum/156874/how-to-create-bootstrap-file-to-design-web-page-in-bootstrap-5)

##### Form Design:-

```
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Accordion.aspx.cs" Inherits="AutoComplete" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>   <script src="Js/jquery-1.8.3.min.js"></script>    <script src="Js/jquery-ui-1.9.2.custom.min.js"></script>    <link href="Bootstrap/jquery-ui-1.10.3.custom.css" rel="stylesheet" />    <link href="Content/LoginStyle.css" rel="stylesheet" /></head><body><form id="form1" runat="server">        <h1>Accordion</h1>        <div id="Accordion">            <div style="width: 300px;">                <h1 style="height: 40px">My Programmes</h1>                <div>                    <p>GNIIT</p>                    <p>DIT</p>                    <p>B.Sc IT</p>                </div>            </div>            <div style="width: 300px;">                <h1 style="height: 40px">MyServices</h1>                <div>                    <p>Web Application Developement</p>                    <p>Android Application Developement</p>                </div>            </div>            <div style="width: 300px">                <h1 style="height: 40px">ContactUs</h1>                <div>                    <p>99999999999</p>                </div>            </div>            <div style="width: 300px">                <h1 style="height: 40px">FeedBack</h1>                <div>                    <p>99999999999</p>                </div>            </div>        </div>    </form></body></html><script type="text/javascript">    $(document).ready(function () {        $("#Accordion").accordion({            header: "h1"        });    });</script>
```

Firstly create <div> tag give id Accordion then create three sud <div> tag of Accordion<div> tag then create one <h1> tag and one <div> tag inside every sub <div>tag then call accordion() [method](https://www.mindstick.com/forum/166/webservice-method) on Accordion <div> tag [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) Inside $([document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool)).ready([function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) () {} function.

##### Use this BootStrap File :-

```
 <script src="Js/jquery-1.8.3.min.js"></script><script src="Js/jquery-ui-1.9.2.custom.min.js"></script><link href="Bootstrap/jquery-ui-1.10.3.custom.css" rel="stylesheet" />
```

[Download](https://www.mindstick.com/articles/188403/website-to-download-photos-from-instagram) and add the above three files into your [projects](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) because it’s

mandatory for using the bootstrap [libraries](https://answers.mindstick.com/qa/49244/which-company-is-ahead-in-classification-of-data-for-libraries-innovations) and methods.

##### Use accordion Method :-

```
<script type="text/javascript">    $(document).ready(function () {        $("#Accordion").accordion({//acordion method            header: "h1"        });    });</script>
```

##### Output

![Accordion using BootStrap in ASP.Net](https://www.mindstick.com/blogs/7837506b-b40d-4592-a7af-36b362cf100e/images/2c5482dc-120d-4e8e-9f6e-b6e1898b0f22.png)

in my next post i'll explain about [Date Picker using BootStrap in ASP.Net](https://www.mindstick.com/blog/627/Date%20Picker%20using%20BootStrap%20in%20ASP%20Net)

---

Original Source: https://www.mindstick.com/blog/626/accordion-using-bootstrap-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
