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.ConnectingEndPoints Sample


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

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

<html xmlns="" >
    <head id="Head1" runat="server">
        <title>Connecting HTTP End Points Sample</title>
         <style type="text/css">
            body {  font: 11pt Trebuchet MS;
                    font-color: #000000;
                    padding-top: 72px;
                    text-align: center }
            .text { font: 8pt Trebuchet MS }

        <h2>Connecting HTTP End Points Example</h2>

        <!-- Add the script manager -->
        <form id="form1" runat="server">
            <asp:ScriptManager runat="server" ID="ScriptManagerId">
                    <asp:ScriptReference Path="ConnectingEndPoints.js" />
            <tr align="left">
                <td>Make GET Request:</td>
                    <button id="Button1"  
                        type="button">GET Request</button>
            <tr align="left">
                <td>Make POST Request:</td>
                    <button id="Button2"  
                        type="button">POST Request</button>
        <hr />
        <div id="ResultId" style="background-color:Aqua" />