Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

pagemethods returns html string (from masterpage?)

$
0
0

Hi,

I have managed to set up a call to a function in codebehind through pagemethods. It return a success but instead of the test string (Hello) it returns a html string that seems to be a small part of the masterpage. What am I missing/doing wrong?

    function ShowCurrentTime() {
            PageMethods.Hello(Success, Failure);
    }

    function Success(result) {
        alert(result);
    }
    function Failure(error) {
        alert(error);
    }

code behind:

<WebMethod()>
    Public Shared Function Hello() As String
        Dim SayHello As String = "Hello"
        Return SayHello
    End Function

Thanks in advance,

Pascal


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>