FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » HTML, Javascript, jQuery & AJAX » How to call server side function from javascript
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
How to call server side function from javascript [message #168493] Fri, 10 May 2013 08:52 Go to previous message
Jack Hard is currently offline  Jack Hard
Messages: 7
Registered: December 2012
Karma:
Junior Member


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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Which code block is using bubble sort?
Next Topic: How many CSS can a website have?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 06:53:07 GMT 2024

Total time taken to generate the page: 0.03871 seconds