我想寫一些結果到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