When i should USE HostingEnvironment.MapPath?
Please let me know in which condition i should use HostingEnvironment.MapPath?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh ShahPosted Feb 22, 2017, 3:11 PM
JAYDIP PATILPosted Feb 21, 2017, 1:41 AM
xslFile = System.Web.Hosting.HostingEnvironment.MapPath(@"~/Reports/xsl/labels_single.xsl");
else
xslFile = System.Web.Hosting.HostingEnvironment.MapPath(@"~/Reports/xsl/labels.xsl");
Nilesh ShahPosted Feb 20, 2017, 10:26 AM