Server.MapPath

Server.MapPath specifies the relative or virtual path to map to a physical directory. Server.MapPath(“.”) returns the current physical directory of the file (e.g. aspx) being executed Server.MapPath(“..”) returns the parent directory Server.MapPath(“~”) returns the physical path to the root of the application Server.MapPath(“/”) returns the physical path to the root of the domain name (is … Read more

Some Visual Studio ShortCut Keys

Shortcut Description F3 Finds the next occurrence of the previous search text. F5 Start debugging F7 Jump to code behind file from .aspx files F8 Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Each time you press F8, … Read more

OpenFileDialog.SafeFileName

I had developed an application in VS2008 with .NET 2.0 . The application was deployed using the VS2008 deployment project¬† with .NET Framework as pre-req. AutoCAD 2009 was already installed on all the client machines so the pre-req conditions were satisfied so .NET Framework was not skipped during the installation of the application. Later on,¬† … Read more