How to get physical path of application in background?

Topics: Core, General
Jan 25, 2012 at 10:42 AM

Hello!

In controller we can use Server.MathPath("~").But this cannot use in background.How I can do it?Thanks!

 


Coordinator
Jan 26, 2012 at 4:48 AM

There is a site setting for that. From the work context, you can get the site, and then As<> it into the part that has the setting.