JS脚本输出helloworld

   <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="WebService.asmx" />
                </Services>
            </asp:ScriptManager>
        </div>
        <script type="text/javascript">
            WebService.HelloWorld(
                function success(res) {
                    window.document.write(res);
                }
                                 );

        </script>

你可能感兴趣的:(JavaScript,C#)