Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Sys.Net.MultipleCallers Sample


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">


<html xmlns="">
    <head id="Head1" runat="server">
        <style type="text/css">
            body {  font: 11pt Trebuchet MS;
                    font-color: #000000;
                    padding-top: 72px;
                    text-align: center }
            .text { font: 8pt Trebuchet MS }
   <title>Passing user context or method name</title>
        <form id="Form1" runat="server">
            <asp:ScriptManager runat="server" ID="scriptManager">
                    <asp:ServiceReference Path="WebService.asmx" />
                    <asp:ScriptReference Path="WebServiceMultipleCallers.js" />
                <h2>Passing User Context or Method Name</h2>
                    <tr align="left">
                        <td>Passing user context:</td>
                            <button id="Button1" 
                                onclick="AddWithContext(10, 20, 'user context information'); return false;">User Context</button>
                    <tr align="left">
                      <td>Passing method:</td>
                        <button id="Button7" 
                            onclick="AddWithMethod(10, 30); return false;">Method Name</button>
            <span id="Results"></span>