Exercises

  1. Expanding on the code you wrote in Listing 7.5, look up the EventLogTraceListener class in the .NET Framework SDK and add a custom listener to the application that writes the debug information to the event log as well as the text file.

  2. Create a new ASP.NET application with a CommandButton and a TextBox. In the code-behind for the Button1_Click event, add a string variable named strTest and an integer variable named intTest. Set a breakpoint on the Page_Load event for WebForm1 and use the Me debugging window and the Immediate debugging window to evaluate the variable values on the form. Change the breakpoint properties to enter break mode when the value of strTest is equal to "Test Break Mode". While in break mode, change the value of ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.