Click here to Skip to main content
15,881,380 members
Articles / Web Development / ASP.NET

COMET (or Reverse AJAX) based Grid Control for ASP.NET Web Applications - Scalable, High Performance and Low Latency Grid Control

Rate me:
Please Sign up or sign in to vote.
4.81/5 (49 votes)
1 Apr 2009CPOL8 min read 228.6K   5K   138  
A COMET/Reverse Ajax based Web Grid Control, which can be used in ASP.NET web application. This control posts the updates to the client based on Server side event(s) thereby reducing network round trips.
// Copyright (c) 2000, 2002 - 2012 Bharath K A
//
// CREATED: Sunday March 29 11:08:13 CST 2009 by Bharath K A
//
// LAST CHANGED:
//
// AUTHOR: Bharath K A
//
// Copyright 2005 by Bharath K A
// All rights reserved.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace BK.Util
{
    internal class ClientDetails
    {
        private HttpContext clientHttpContext;
        private ClientStatus clientStatus;
        private object lockObj = new object();

        internal ClientDetails(HttpContext HttpContextToRespond)
        {
            clientHttpContext = HttpContextToRespond;
            clientStatus = ClientStatus.Updated;
        }

        public HttpContext ClientContext
        {
            set
            {
                clientHttpContext = value;
            }

            get
            {
                return clientHttpContext;
            }
        }

        public ClientStatus ClientStatusNow
        {
            set
            {
                clientStatus = value;
            }

            get
            {
                return clientStatus;
            }
        
        }


        
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions