-
Book Overview & Buying
-
Table Of Contents
Building Websites with Microsoft Content Management Server
By :
Each time an event handler is raised, we record its name and other bits of information in a log file.
First, create a new folder on your c:\ drive and name it TropicalGreenLogs. The LogEvent() method records each event as it is called in a text file called MCMSEventLog located in the c:\TropicalGreenLogs folder.
If you are using Windows 2000, Windows Server 2003, or Windows XP with classic permissions, make sure the c:\TropicalGreenLogs folder exists and has read/write permissions assigned to the local ASPNET account. Otherwise the log file will not get written and you may get errors when executing the code below!
The LogEvent() method will accept two parameters: the name of the method being called (methodName) and the event argument of the handler (eventArgument).
Add the following code below the Global() constructor in the Global.asax.cs file:
//The LogEvent() method records events as they are raised FileStream fsLog = null; StreamWriter wLog = null; protected...
Change the font size
Change margin width
Change background colour