Click to See Complete Forum and Search --> : Call a server function from javascript


d00_ape
January 30th, 2009, 07:07 AM
How can I force a postback and call a codebehind funktion from javascript?
I want to do something like this:

aspx-file
<script type="text/javascript">
function OnRowSelecting(sender, args)
{
ServerFunc();
}
</script>

Codebehind c# file
private void ServerFunc()
{
//…
}

dannystommen
January 30th, 2009, 07:39 AM
http://ajax.schwarz-interactive.de/download/ajaxsample.zip

download the zip. In the zip there's a Word document with tutorial