Link to home
Start Free TrialLog in
Avatar of ds869
ds869

asked on

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

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.
Avatar of Jigit
Jigit
Flag of Israel image

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
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
ASKER CERTIFIED SOLUTION
Avatar of garyolliffe
garyolliffe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial