现在的位置: 首页 > 综合 > 正文

PageMethods是什么

2014年01月11日 ⁄ 综合 ⁄ 共 423字 ⁄ 字号 评论关闭

经过几天的学习,我感觉PageMethods 是一个Atlas内置的类,因为我在下面这段代码中这样调用页面方法时:

<script type="text/javascript" language="javascript">
    function OnbuttonGo_click()
    {
        requestSimpleService = PageMethods.EchoName(
            document.getElementById('inputName').value, OnComplete);
        return false;
    }
    function OnComplete(result)
    {
        alert(result);
    }

</script>

我的方案中根本不存在PageMethods这个类,我的类名是:PageMethodSample,页面文件名是:PageMethodSample.aspx。

抱歉!评论已关闭.