Posts

Showing posts from June, 2008

Chanakya's Quotes - Worth reading a million times…

Chanakya's Quotes - Worth reading a million times… *************************************************** 'A person should not be too honest. Straight trees are cut first and Honest people are victimised first.' *************************************************** 'Even if a snake is not poisonous, it should pretend to be venomous.' *************************************************** 'The biggest guru-mantra is: Never share your secrets with anybody. ! It will destroy you.' *************************************************** 'There is some self-interest behind every friendship. There is no Friendship without self-interests. This is a bitter truth.' *************************************************** 'Before you start some work, always ask yourself three questions - Why am I doing it, What the results might be and Will I be successful. Only when you think deeply and find satisfactory answers to these questions, go ahead.' ****************

Anger & Love

ANGER & LOVE While Dad was polishing his new car, his four-year old son picked up a stone & scratched lines on the side of the car. In his anger, Dad took the child's hand & hit it many times, not realizing he was using a wrench. At the hospital, his child said, "Dad, when will my fingers grow back?" Dad was so hurt, he went back to the car and kicked it a lot of times. Sitting aside, he looked at the scratches. Child wrote, "I LOVE YOU DAD". ANGER & LOVE have no limits..... we never realize when we hurt someone..... its easy hurting..... n its easy forgiving but its very hard to forget..... specially for the one who's hurt..... Whenever you are angry remember this story...

Error Logging using ASP.NET 2.0

Error Logging using ASP.NET 2.0 This article has been republished with a few minor changes. Errors and failures may occur during development and operation of a website. ASP.NET 2.0 provides tracing, instrumentation and error handling mechanisms to detect and fix issues in an application. In this article, we will adopt a simple mechanism to log errors and exceptions in our website. We will be using a mechanism where the user will be redirected to a separate page whenever an error is encountered in the application. Simultaneously, the error will get logged in a text file on the server. The error file will be created on a daily basis, whenever the error is encountered. Having said that, let us now see some code. Step 1: Start by creating an Error folder where all errors will be logged. Right click the website > New Folder. Rename the folder to “Error”. Also add a web.config file, if one does not already exist in your site. Right click the website > Add New Item > Web.config. Step