Hello,
I am a Java programmer and I am new to C#. Now I am learning ASP.NET.
I would like to know where the output of
Console.WriteLine
goes.
Thanks for your help!
David
Hello,
I am a Java programmer and I am new to C#. Now I am learning ASP.NET.
I would like to know where the output of
Console.WriteLine
goes.
Thanks for your help!
David
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satish KathiRank #8,369 · 223 reputationPosted Jul 9, 2008, 7:36 AM EDT
David8 reputationPosted Jul 9, 2008, 8:26 AM EDT
Satish,
Thanks for your reply!
So, in a ASP.NET application, Console.WriteLine does not leave any trace in the logs or screens or anywhere?
Regard,
David
Victor5 reputationPosted Jul 9, 2008, 8:36 AM EDT
Satish KathiRank #8,369 · 223 reputationPosted Jul 9, 2008, 8:40 AM EDT
David8 reputationPosted Jul 9, 2008, 9:41 AM EDT
>>Console.Writeline() ouputs results to the standard screen, similar to the DOS-like screen.
I am doing ASP.NET in C#. Does that mean Console.Writeline() leaves no trace? Or where can I find this DOS-like screen in an ASP.NET app?
Thanks!!!
ArshadRank #2,492 · 564 reputationPosted Jul 9, 2008, 9:54 AM EDT
So for the console Application means for the Dos thing we use Console.WriteLine() in the C#(that Display the String in the DOS), but if you are using the C# with the ASP.NET(i.e web technology), so if you need to display the Data in the Browser in the Same Manner like DOS then you will have to need some ASP.NET object like Response Object.so you can write Response.Write(""); or Response.WriteLine("");
Thanks.
David8 reputationPosted Jul 9, 2008, 10:00 AM EDT
Kahn,
Thanks for the detailed explanation. That seems to make sense to me.
This is a place Java programmer does things differently. In Java,
System.out.prinltn()
outputs something to a server console where a web app starts or IDE in which an application runs.
Regard,
David