Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 8/8/2006 10:35 AM
Hi,

I have come across a problem with ASP.NET 2.0 but it is a bit of a bummer.

The problem is this:

I wanted to take advantage of ASP.NET 2.0’s excellent new asynchronous page’s capabilities (see here) but alas it just does not work in the Cuyahoga framework and I wondered if anyone could tell me why and maybe suggest a work around.

The way I approached this problem was to create a new .aspx page that inhereits from a class that inherits from PageEngine. The reason I need it to inherit PageEngine is that I the page to load all the nice content managed elements, e.g. menus. I placed a section in the UrlMappings section of the web.config so that it redirects to my .aspx page and added the async attribute.

I then added the following code to page_load:

AddOnPreRenderCompleteAsync(
new BeginEventHandler(BeginAsyncOperation),
new EndEventHandler(EndAsyncOperation)
);

I added the appropriate event handlers but the the begin and end eventhandlers simply do not fire.

The problem seems specifically to be what is happening in the PageHandler class and specifically the GetCompiledPageInstance method (I think).

I know this to be the case because I created a test page and commented out the httpHandlers element of the web.config and the asynhronous processing worked as expected.

This seems a pity but not a show stopper for me. Has anyone any idea how I might enable this async behaviour??

Thanks

Paul
# big_al 8/8/2006 6:33 PM
Hi

I think you *might* be able to wire up that behavior as part of the HttpModules, but I really think if your after this sort of behavior your probably best off using something like ATLAS (or any other AJAX library).

I'll be using ATLAS for the new Admin interface, so once thats completed your more than welcome to have a look, however it'll be a while yet.

Al
# gedw99 8/12/2006 6:02 PM
Big Al,

Ajax based admin module !
Sounds very slick.

Is ther any chance you can give me an idea of how its coming along usng Atlas. I have heard good and some very bad reports about it cross browser friendliness.

regards

Gerard