Skip to main content

Posts

Showing posts from June, 2012

DOTNET - Tips and Tricks

Been a while since I blogged on dot net and cant wait any more- I would like to highlight a couple of things that can be very handy and you should be aware of if you are not- 1. Taking a site offline- When you make an ASP.NET website offline, many developers simply stop the website using IIS after informing the stake holders. A neater way of doing this is to place a file named "app_offline.htm" in the root directory of the website. This will force IIS to display contents of this page instead of any other page requested from your website. Note: The size of the file should exceed 532 KB. This is a know limitation 2. In Visual Studio while working on any file, if you need to indent the code, you can let Visual Studio do the job by using the shortcut Ctrl+K+D. Visual Studio automatically indents the code for you (assuming you have no syntax errors in your code) and it does a neat job. This tip can be very handy and save you lot of time. 3. Some important keyboard sh

Annoying pop-ups

I was recently working on a tool which gave an annoying popup that some error has occurred and had to click "OK" to get rid of it and continue the process. This proved really cumbersome as I had to monitor the process too often to be able to get rid of the blocking popup. I looked up on the web and found an answer to this issue- http://stackoverflow.com/questions/5868801/tools-code-to-automatically-click-ok-on-dialogs I used BuzOf a very handy utility that can get rid of annoying popups - http://www.basta.com/Product.aspx?pid=13 Just teach BuzOf which window to handle and which button to click and it will make things easy for you. Until next post c ya Hitesh