c# - how to get the path for executable file that started the application? -
I am working on a web application using C #,
I know that How to give in the windows application The path to the executable file that started the application (if (!! (System.IO.File.Exists (application.StartupPath + "\ gsdll32.dll")))
But I do not know how to give that path
Use the method in ASP.NET:
var siteRootPath = Server.MapPath ("~ /");
There is another possibility to use fixed assets:
Comments
Post a Comment