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

NTEXT vs NVARCHAR(MAX) in SQL 2005

I recently profiled a sproc that makes heavy use of the TSQL SUBSTRING function (hundreds of thousands of times) to see how it performs on a SQL 2005 database compared to a SQL 2000 database. Much to my surprise the SQL 2005 database performed worse…dramatically worse than SQL 2000. After much researching it turns out … 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

Missing Items in Visual Studio 2005 Menu

I noticed some missing menu items in the VS2005 (like clean, rebuild, and many others) but i continued by using the commands from other locations; until I got stucked!  I wanted to export a form as a template but the Export was not available in the File menu. The details of my environment are: WIN … Read more

15 Windows Explorer Alternatives

Windows Explorer, the default file manager for Microsoft Windows, hasn’t really changed all that much over the years. Below you’ll find reviews, screenshots and links to download 10 11 12 14 15 different alternatives. If I haven’t included your favorite file manager (for Windows..) in this list, by all means please leave a comment below … Read more

Five Things That Suck About Working in IT

5. There’s often a bad inheritance This item comes courtesy of TechRepublic member ken.mccrohan of Virginia. He described it as “Previous CIO/Net Admin/Developer chose a vendor [or] spec’d a system [or] wrote some code, then leaves, and you are tasked with fixing their mess or worse, explaining their choices.” This is so common it’s practically … Read more

Constansts in C#: const VS readonly

Pop quiz: What’s the difference between these three declarations? And, more importantly, when should you use each one? private const int _Millenium = 2000; private static readonly DateTime _classCreation = DateTime.Now; private readonly DateTime _InstanceTime = DateTime.Now; The first creates a compile-time constant, the second creates a run-time class constant, and the third creates a … Read more

Firefox 3.0 – Download Day – Set a Guinness World Record

With more than 15,000 improvements, Firefox 3 is faster, safer and smarter than ever before. Waiting for what….? Download Now. Want to know some Tips & Trick about new Firefox?? Download Day is here! Set a Guinness World Record Enjoy a Better Web Mozilla is organizing a “Download Day” to promote Firefox 3.0 and set a Guinness … Read more