Application Path at Design Time
-
I am building a Design editor for a property in a custom control which uses a FolderDialog. Ideally, the folderdialog should open up on the root folder of the application as its selected path. If I use:
AppDomain.CurrentDomain.BaseDirectory
it works at run time, but I need it at Design Time where it returns the basedirectory of the Visual Studio IDE. How can I get the application path at design time. Ex. c:\inetpub\wwwroot\applicationname? thanks, sivilian -
I am building a Design editor for a property in a custom control which uses a FolderDialog. Ideally, the folderdialog should open up on the root folder of the application as its selected path. If I use:
AppDomain.CurrentDomain.BaseDirectory
it works at run time, but I need it at Design Time where it returns the basedirectory of the Visual Studio IDE. How can I get the application path at design time. Ex. c:\inetpub\wwwroot\applicationname? thanks, sivilian -
Server.MapPath( Request.ApplicationPath);
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji