Solved

What's the equivelent of System.out.println() in Visual C#.NET?

Posted on 2004-09-09
3
5,132 Views
Last Modified: 2008-02-01
Hi, I am new to VC#.NET. I have Visual C#.NET version 7 installed and I am doing some ASP.NET using C#. Instead of using the debug tools, I sometimes want to print a line of code to the Visual IDE, just like the System.out.println() function in Java/JBuilder. So, what's the equivelent of that in C# and Visual? Do I need configure the IDE?

I tried the Console.write() but it didn't work, I guess it only works when called from a console, not within the Visual IDE.

Thanks.

D.
0
Comment
Question by:ds869
3 Comments
 
LVL 4

Expert Comment

by:Jigit
ID: 12020337
ASP.NET application runs under ASPNET account, which is not an interactive one. IMHO, one cannot display a window neither write to console. The best way to have some debug outbut is to write it to a log file or to event log.

HTH,
Jigit
0
 
LVL 7

Expert Comment

by:imsolost
ID: 12020666
response.write("String") or response.write(variable)  will write to the page in VB.net so long as there is not a control in the way.  It will write starting in the top left of the page.  Im sure the C or C# code is more or less the same.  hope that helps
0
 

Accepted Solution

by:
garyolliffe earned 50 total points
ID: 12026330
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question