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 :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
How to call server side function from javascript [message #168493] Fri, 10 May 2013 04:52 Go to next message
Jack Hard is currently offline  Jack Hard
Messages: 7
Registered: December 2012
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user


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 by annaharris is ignored  [reveal message]  [reveal all messages by annaharris]  [stop ignoring this user] Go to previous messageGo to next message
Message by steveskok is ignored  [reveal message]  [reveal all messages by steveskok]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Which code block is using bubble sort?
Goto Forum:
  

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

Current Time: Sat Oct 16 05:59:48 EDT 2021

Total time taken to generate the page: 0.00764 seconds