_workContext from aspx page (IoC)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi!
I have written some plugins and from there I could easily get customer info and order info from IorderService etc. Now i need to get an order from an aspx page (order id is passed to the page). How can I use IorderService and IworkContext from a System.UI.Page? In version 1.9 i just used IoC.Resolve, do I need to use controls, models and views in this example or is there an easier way inside my .aspx page?

I use version 2.4

Help is really appreciated!

Regards Markus
12 years ago
Use EngineContext.Current.Resolve<T>().
12 years ago
Thanks alot!!
I works now :)

Regards Markus
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.