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 :: Show 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
Re: How to call server side function from javascript [message #168606 is a reply to message #168493] Fri, 31 May 2013 08:04 Go to previous message
annaharris is currently offline  annaharris   India
Messages: 4
Registered: May 2013
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
This might help! stackoverflow.com/questions/16475461/how-to-call-server-side-function-from- javascript
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Probem on the page in this sait
Next Topic: HTML Editors
Goto Forum:
  

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

Current Time: Sat Oct 21 01:02:02 EDT 2017

Total time taken to generate the page: 0.00717 seconds