Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 2.0 AJAX ISBN: 978-0-470-10962-5
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 AJAX by Matt Gibbs, Dan Wahlin; ISBN: 9780470109625
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 AJAX ISBN: 978-0-470-10962-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 28th, 2007, 10:20 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custom controls and callback

Hi,

first, congrats for your great book, a very valuable resource for all ASP.NET dev IMO.

However, there is one thing that is missing, the answer to my question :-)
As an ASP.NET control developer, I am particularly interested in how custom control can benefit from the ASP.NET AJAX async communication layer. Indeed, the recommended way to perform asynchronous request for a custom control was to use the ICallbackEventHandler interface coupled with the GetCallbackEventReference mechanism. This solution works nicely and is guaranteed to be executed in the ASP.NET lifecycle.
On the other side, ASP.NET AJAX provides the Sys.Net.WebRequest solution. After having read the corresponding chapter in your book, I think I understand the benefit for a Page developer (Page Methods and Web Services proxies), but I am not sure about the interest for a Control developer. Let's take an example. I have developped an ExtenderControl that needs to perform some tasks asynchronously on the server. What I did is my ExtenderControl subclass implements ICallbackEventHandler to process the callback and send the result back to the behavior. Would there be another possible implementation using the WebRequest object ?
And from a more general view, is there a guideline telling when to use the WebRequest and when to use the ICallbackEventHandler ?

I would be very interesting in knowing your opinion about that.

Thanks,

Patrick
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Controls pro-logic C# 2008 aka C# 3.0 1 November 26th, 2008 10:55 AM
Custom Controls bmains ASP.NET 1.x and 2.0 Application Design 1 April 8th, 2004 05:26 PM
Custom Controls bmains VS.NET 2002/2003 3 February 5th, 2004 09:54 AM



All times are GMT -4. The time now is 05:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.