Solved

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

Posted on 2004-09-09
3
5,137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Fred Goodwin
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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 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