A very common tool to test and debug .NET assemblies is the implementation of the Console.WriteLine() method. With it, you can write data to Visual Studio’s Output window.
Contrary to intuition (mine, anyway), the Console.WriteLine() method does not write data to the Output window for .aspx web pages. Not to worry, though. There is an alternative: