Writes a message to the trace listeners in the Trace.Listeners collection.
By default, the output is written to an instance of System.Diagnostics.DefaultTraceListener.
This method calls the TraceListener.Write(string) method of the trace listener.
ASP.NET supplies tracing functionality tailored for Web pages. To write trace messages in ASP.NET pages, use the System.Web.UI.Page.Trace property.
By default, in code associated with an ASP.NET Web page, the statement Trace.Write("...") is a call to the erload:System.Web.TraceContext.Write method of the System.Web.UI.Page.Trace property. To use the System.Diagnostics.Trace class in Web pages, you must include the namespace, for example, System.Diagnostics.Trace.Write("...").