Solved

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

Posted on 2004-09-09
3
5,128 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

21 Experts available now in Live!

Get 1:1 Help Now