Reverse AJAX technique in ASP.NET (VBASPNETReverseAJAX)

Reverse Ajax is also known as Comet Ajax, Ajax Push, Two-way-web and HTTP server push. This technique persists a HTTP request to allow the server push data to a browser, without requesting the server in a individual time. This sample shows how to use thi

VB.NET (61.5 KB)
 
 
 
 
 
5 Star
(1)
13,614 times
Add to favorites
5/5/2011
E-mail Twitter del.icio.us Digg Facebook
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Sender.aspx.vb" Inherits="VBASPNETReverseAJAX.Sender" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

    <asp:Label ID="lbNotification" runat="server" ForeColor="Red"></asp:Label><br /><br />

    RecipientName:<br />
    <asp:TextBox ID="tbRecipientName" runat="server" Width="100px"></asp:TextBox><br />

    Message:<br />
    <asp:TextBox ID="tbMessageContent" runat="server" Width="300px"></asp:TextBox><br />

    <asp:Button ID="btnSend" runat="server" Text="Click to send" onclick="btnSend_Click" />

    </form>
</body>
</html>