i am looking to set sorting on ASP Repeater. see my repeater code:
<asp:Repeater runat="server" ID="RptClientDetails">
<HeaderTemplate>
<table id="example" class="dynamicTable table table-striped table-bordered table-primary">
<thead>
<tr>
<th>
<a href="#" onclick="ClientSort('ClientID')">Client ID</a>
</th>
<th>
<a href="#" onclick="ClientSort('Name')">Name</a>
</th>
<th>
<a href="#" onclick="ClientSort('TotalBalanceDue')">Total Balance Due</a>
</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
here, i am calling javascript function. see my javascript function code:
function ClientSort(SortExpress) {
<%= Sorting(SortExpress) %>
}
from here i want to call my .net server side function.
public void Sorting(string SortExpression)
{
string s = SortExpression;
}
so, have you idea how can i call it? or directly from repeater i can call this server side function..Thanks