Intellisense on Steroids in ASP.NET 2.0

Whoa! I'm working on some neat ScriptCallback stuff with a database of quotations I've been working with in Visual Studio.NET 2005, and I just noticed this. When you have client script in ASP.NET 2.0,
and you need to debug it (even if it's dynamically generated script from the Page.ClientScript object), you get some really cool new Intellisense on it. This picture is debugging Client - side javascript, folks:



-- by the way, if you are wondering why any of the script callback demos you've seen for ASP.NET 2.0 don't work, its because the GetCallbackEventReference method got moved into the Page.ClientScript class. So,

Page.GetCallbackEventReference(this,"arg", "ReceiveServerData", "context");

now needs to be:
Page.ClientScript.GetCallbackEventReference(this,"arg", "ReceiveServerData", "context");

If you are interested in working with script callbacks for ASP.NET 2.0 in a strongly-typed fashion, and would like to see an example of it done "the right way" instead of the "BS AJAX clone" way, I recommend that you visit Bertrand Leroy's blog and see the gotdotonet workspace for his RefreshPanel infrastructure.

Comments

Popular posts from this blog

Some observations on Script Callbacks, "AJAX", "ATLAS" "AHAB" and where it's all going.

IE7 - Vista: "Internet Explorer has stopped Working"

FIREFOX / IE Word-Wrap, Word-Break, TABLES FIX

System.Web.Caching.Cache, HttpRuntime.Cache, and IIS Recycles

FIX: Requested Registry Access is not allowed (Visual Studio 2008)