Console.Write will not work in ASP.NET because it is invoked using a browser. Use Response.Write instead.
See stack overflow question. Where is Console.WriteLine included with ASP.NET? .
If you want to write something in the Output window during debugging, you can use
System.Diagnostics.Debug.WriteLine("SomeText");
but this will only work during debugging.
See stack overflow question Debug.WriteLine does not work .
PraveenVenu Mar 08 2018-12-12T00: 00Z
source share