Asynchronous Client Script support Control for ASP.NET V2.0

Published Wednesday, May 11, 2005 12:05 AM

I have created and made available a control aimed at ASP.NET V2.0 (developed with Beta2) that simplifies the use of Asycnronous client script callbacks in ASP.NET V2.0. Currently, setting up async client scripting in ASP.NET V2.0 requires some fiddly server side code to get a callback event reference, wrap it in a function script, and register it.

This control takes care of all that for you. Simply drop it on your webform page, specify the client callback method and the client side error method (which you must supply in your webform) as well as supply a javascript method name which the control will register that initiates the callback action.

The Server side functionality is exposed via a standard event handler, so you can simply double click on the 'ServerSideCallback' event on the control and type the code that will be responsible for getting called asynchronously by the client script.

It also support an interval timer, so that you can specify an interval in milliseconds, and the control will setup a repeating timer to initiate the asynchronous client script call every the interval elapses.

You can grab the control from my website or from my repository on the Project Distributor site. Full source code and an example project (although trivial) is supplied.

If you find it useful, I'd love to hear some feedback.

by Glav

Comments

# TrackBack said on Tuesday, May 10, 2005 6:57 AM

Link Listing - May 10, 2005

# Marshall Brooke said on Wednesday, May 11, 2005 1:04 PM

Great work Paul, this is the first of many really usefull posts for the Beta 2 release.

# Paul Glavich said on Wednesday, May 11, 2005 7:42 PM

Thanks Marshall. Glad you like it.

# Javier Luna said on Thursday, May 26, 2005 11:18 PM

I believe that any DataLayer must be a simple code block, that they allow operations against DB.

That code block would not have to know on the Business Entities. Single to specialize it is to execute the operations (Store Procedures and SQL Sentences) against the engine DB (SQL, Oracle, DB2, etc.), with which this setting.

Finally, I invite to you to download the DataLayer.Primitives Public Version.

This is very cool Data Layer :)

DataLayer.Primitives - Readme!
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=1389

Cheers,

Javier Luna
http://guydotnetxmlwebservices.blogspot.com/

Leave a Comment

(required) 
(required) 
(optional)
(required) 

This Blog

Syndication