Event Logging Using Reflection
When exceptions occur during the execution of an application, the stack trace contains the detailed location of where the exception is originated.
When exceptions occur during the execution of an application, the stack trace contains the detailed location of where the exception is originated.
I ran into this weird compile time error the other day, and as it turned out, this is due to the limitation of Visual Studio 2005 deployment capabilities.
Typically, there is rarely a need to change a control’s ID. However, this practice is sometimes useful when debugging a custom control, partiularly one that contains dynamically generated controls.
It seems that the DropDownList control in ASP.Net 2.0 really has some issues. Besides the one I mentioned in an earlier post, I recently ran into another annoying problem.
Reflection is case sensitive by default, which comes at no surprise to most C# developers.
In a role based application, it is often required that certain controls on the UI form be enabled and disabled based on user’s security credentials.
A while ago, I discussed some interesting behavior of File.Exist function in .Net. Recently I found out that File.Copy is just as elusive when UNC is involved.
I came across something rather interesting the other day when trying to determine what sorting algorithms .Net Framework uses in its list class: The built-in sorting method runs much faster than the reverse-engineered and then compiled code, even though in…
Here is a tool that I created (in C#.Net) which comes in handy when dealing with multi-frame TIFF images.
When dealing with GDI+ in .Net (e.g. certain objects in System.Drawing namespace), we would sometimes get the following exception:
I have heard many people complaining about how GDI+ handles errors.
Download DynamicEvent.zip In an article earlier, I discussed how to dynamically load an assembly and execute it via the contract of a predefined interface.
Sometimes we find App.config inadequate in addressing our problems and need to have a generic solution in creating strongly typed configuration files.
Partial class was introduced in .Net 2.0 mainly for better handling of visual designer generated code.
Download filewatchermt.zip In business world, file watchers play an important role in day to day operations.