我想写一些结果到ASP.NET(C#)的控制台。 它在Window应用程序中工作,但Web应用程序不起作用。 这是我曾尝试:如何在调试期间在ASP.NET(C#)中使用Console.WriteLine?
protected void btonClick_Click(object sender, EventArgs e)
{
Console.WriteLine("You click me ...................");
System.Diagnostics.Debug.WriteLine("You click me ..................");
System.Diagnostics.Trace.WriteLine("You click me ..................");
}
但我什么也看不到在输出面板。我该如何解决这个问题?
看这里, http://stackoverflow.com/questions/2522099/where-does-debug-write-output-to – labroo 2012-03-08 07:35:27