Software / Technology Tips

How to create a custom error handler

User can  set his own exception handler for complete application and also for all uncaught exception. Errors are the part of every programming language and normally programmers don’t want to pay much attention to handling the errors. PHP of course by default handle the errors and maintain logs also, but we should handle all the…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to minimize the Method Overloading in C# 4.0

We can avoid creating many overloads of a method by specifing default values for some parameters. public static void EmployeeDetails(int empId, string address="BBSR", double salary=15000) { } static void Main(string[] args) { EmployeeDetails(1); EmployeeDetails(1, "Cuttack"); EmployeeDetails(1, "Cuttack", 20000); } In the above Example there is a method called EmployeeDetails which has 3 parameters including 2…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Browse Files Under a directory Using GridView in a web application

Suppose, in a web application we need to create some files (say xml reports) and then show it to the user. One of the simpler ways to view those files would be through a popup() page. This is what is explained below: Solution: Let our web application display XML files from a specific directory location (say “C:\XML Files”)  Now we need…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!