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
13,616 times
Add to favorites
E-mail Twitter Digg Facebook
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Sender.aspx.vb" Inherits="VBASPNETReverseAJAX.Sender" %>

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

<html xmlns="">
<head id="Head1" runat="server">
    <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" />