views:

92

answers:

1

Hi guys,

Have anybody tried to create strongly typed API for ASP.NET MVC 2 async actions?

Best regards, Alexey Zakharov

A: 

Use a WCF web service.

It's the cleanest solution and controllable, also if you decide to use client side frameworks like silverlight you still have access to everything you need.

But my recommendation, use ajax for async server calls, in my case it was about 20 lines of javascript defined in a common scripts file that include on every page then in my page inside a div i would simply dump out a script tag and call that method that asks the server to push out my async request.

MVC is overcomplicted if you ask me ... but then noone ever does other ms would stop building it !!!

Or do you need to do some async stuff whilst doing other things on the page during the loading process on the server?

Wardy
Wardy may be you have missed the idea of the question? Current ASP.NET MVC 2 have async api based on magic string approach. I wonder if anybody tried to create strongly typed alternative
Alexey Zakharov