Solved

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

Posted on 2004-09-09
3
5,124 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
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now