Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version

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

, 1 Apr 2009 CPOL
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.
GridControlCometAjax.zip
GridControlCometAjax
bin
Release
GridControlCometAjax.dll
GridControlCometAjax.pdb
GridControlCometAjax.zip
MultiMap.dll
MultiMap.pdb
Properties
Test
App_Data
bin
GridControlCometAjax.dll
MultiMap.dll
Test.dll
Test.pdb
GridCtrl
GridControlCometAjax.dll
GridControlCometAjax.zip
MultiMap.dll
Img
bg.JPG
Properties
TestGridControl.csproj.user
Perf.zip
Test.zip
GridControlCometAjax.dll
MultiMap.dll
Test.dll
Test.pdb
GridControlCometAjax.dll
GridControlCometAjax.zip
MultiMap.dll
bg.JPG
TestGridControl.csproj.user
// 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;
using System.Threading;

namespace BK.Util
{
    class GridAsynchResult : IAsyncResult
    {
        private HttpContext clientContext;
        private AsyncCallback callback;
        private bool isCompleted = false;
        private ClientStatus clientStatus;
        private ResponseDetails respDetails;
        private object asyncState;

        public GridAsynchResult(ResponseDetails RespDetails, HttpContext Clientcontext, AsyncCallback Callback, ClientStatus Status)
        {
            respDetails = RespDetails;
            clientContext = Clientcontext;
            callback = Callback;
            asyncState = null;
            clientStatus = Status;
        }

        public ResponseDetails RespDetails
        {
            get
            {
                return respDetails;
            }
        }

        public HttpContext ClientContext
        {
            get
            {
                return clientContext;
            }
        }

        public AsyncCallback Callback
        {
            get
            {
                return callback;
            }
        }

        public ClientStatus Status
        {
            get
            {
                return clientStatus;
            }
            set
            {
                clientStatus = value;
            }
        }

        #region IAsyncResult Members

        public object AsyncState
        {
            get { return this.asyncState; }
        }

        public WaitHandle AsyncWaitHandle
        {
            get { throw new InvalidOperationException("ASP.NET Should never use this property"); }
        }

        public bool CompletedSynchronously
        {
            get { return false; }
        }

        public bool IsCompleted
        {
            get { return this.isCompleted; }
        }

        #endregion


        public void BeginWaitRequest()
        {

        }

        internal void SetCompleted()
        {
            this.isCompleted = true;

            if (callback != null)
                callback(this);
        }


    }
}

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)

Share

About the Author

Bharath K A
Software Developer (Senior)
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 1 Apr 2009
Article Copyright 2009 by Bharath K A
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid