Whidbey Script Callbacks

I started working on my AR for the Whidbey Tap to come up with script callback sample using ASP.NET 2.0.  I implemented a 1.0/1.1 version using XMLHttp which works pretty nicely so I wanted to see how to do the same thing in ASP.NET 2.0.  It was pretty easy to setup the callback but I ran into a limitation pretty quick in that you can only have one script callback method per page.  To get around this you need to create a call that inherits from the control that you want to generate a callback event handler.  It is pretty easy to do but I could see if getting annoying pretty quickly having to do this for a bunch of controls.  Lets hope that Microsoft give us the ability to define multiple callback events by the final release without having to go thru the process of creating your own controls.

Here are some good articles about the callback feature.  If you read the feedback for the 2nd article, the author answers how to use multiple callback events on a page.

Once I am done with my sample, I will post it to the Whidbey Tap Workspace for download.


Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 5. 2009 10:39 AM