l Datatable (open sources libraries):- it provides auto search faclity.

 Day - 12/06/2025

Gridtable.aspx page

 Datatable (open sources libraries):- it provides auto search faclity.  

Steps :-1. Store data table libraries in your project folder.

st2. INCLUDE DATA TABLE libraries .

Include all data table libraries inside the head tag.

1.<link href="datatables/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />

<link type="text/css" rel="stylesheet"

href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />

<link rel="stylesheet" type="text/css"

href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" />

2.

<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>

 <script type="text/javascript"

src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>

 <script src="datatables/js/jquery.dataTables.min.js"

type="text/javascript"></script>

 <script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"

type="text/javascript" charset="utf8"></script>

 <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"

type="text/javascript" charset="utf8"></script>   

 

 

St3 . INCLUDE DATATABLE SCRIPT AFTER THE FORM CLOSE TAG

<script type="text/javascript">

 $(document).ready(function () {

 $('#<%= GridView1.ClientID%>').prepend($("<thead></thead>").append($("#<%=

GridView1.ClientID%>").find("tr:first"))).DataTable({

 stateSave: true,

 });

 });

</script>

St4 :- using division tag with data table class attribute before the gridview tag.

3.<div class="card-footer bg-white">

Comments

Popular posts from this blog

ViewState for state management

Store procedure Data Base handling (procedure_insert).

Database joining