02-05-2012 06:53 PM
I would like to know how I can get the application root directory of SalesLogix Web? For example if my SalesLogix Portal is running under SLXClent directory of IIS? How can I get the path of the IIS directory?
Thanks a lot for any help!
02-06-2012 04:01 PM
It goes back to the ASP Objects: Application, Server, Session, Request and Response.
In ASP.Net, I believe you have it wrapped under the HttpServerUtility class (System.Web.HttpServerUtility).
Each Page will have a reference to it already built, so all you need to do is:
Or Server. (It all depends on the Class that your Web Page is derived on, so if working on an SLX Control, you may need to do Page.Server to get an instance of the Object).
02-06-2012 04:04 PM
Thank a lot for your reply. My problem here is I am not dealing with it in a ASP page. I use a external assembly for my Business Rules. In the business rule method I need to get the path, how can I get the reference to the Page object in this way? The only thing SalesLogix passed in to the method is the Entity.
02-06-2012 04:46 PM