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


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

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

<html xmlns="" >
    <head id="Head1" runat="server">
        <title> WebRequestManager  Example </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>WebRequestManager Example</h2>
        <form id="form1" runat="server">
            <asp:ScriptManager runat="server" ID="scriptManagerId">
                    <asp:ScriptReference Path="WebRequestManager.js" />
            <tr align="left">
                <td>Make a Web request:</td>
                    <button id="Button1" 
                        title="adds and remove handlers, too"  
                        onclick="MakeWebRequest(); return false;">Web Request</button>
            <tr align="left">
                <td>Set, get default executor:</td>
                    <button id="Button2"  
                        onclick="DefaultExecutor(); return false;">Executor</button>
           <tr align="left">
                <td>Set, get default timeout:</td>
                    <button id="Button3" 
                        onclick="DefaultTimeout(); return false;">Timeout</button>
        <hr />
        <div id="ResultId" style="background-color:Aqua;"></div>