CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    381

    Call a server function from javascript

    How can I force a postback and call a codebehind funktion from javascript?
    I want to do something like this:

    aspx-file
    Code:
    <script type="text/javascript">
    function OnRowSelecting(sender, args)   
    {
        ServerFunc();
    }
    </script>
    Codebehind c# file
    Code:
    private void ServerFunc()
    {
        //… 
    }
    ...and justice for all

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Call a server function from javascript

    http://ajax.schwarz-interactive.de/d...ajaxsample.zip

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured