PDA

View Full Version : [CLOSED] Razor view migration



gets_gui
Apr 23, 2012, 7:14 PM
Hi,

We also plan to migrate the exiting code to Razor view.
Do you have any guidelines or suggestions how we can proceed?
For example, what are the best practices for migrating the existing server side C# methods/direct methods in aspx?

Thanks.

Daniil
Apr 23, 2012, 8:19 PM
Hi,

Well, we have no any guidelines at the moment. Personally, I'm not sure we will have any special guidelines soon.

I would look it up on the internet - some common migrating to Razor guidelines or, even, converters.

gets_gui
Apr 24, 2012, 2:44 PM
How about the direct mthods and server side methods in aspx?
BTW, some of the direct methods are called by javascript.

Daniil
Apr 24, 2012, 2:48 PM
You can call any controller action using

Ext.net.DirectMethod.request({ /* request config */});

A request config will look similar as here:
http://examples2.ext.net/#/Events/DirectMethods/WebService/

For DirectEvent you can set up a respective URL referring a controller action.