473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

using Console.Writeln(...) in WebServices or ASP.NET application

Hello!

When you have windows forms you have the same possibility as when you have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony
Aug 16 '06 #1
6 5694
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLine in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #2
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln(..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLine in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony

--
Happy Coding!
Morten Wennevik [C# MVP]

Aug 16 '06 #3
Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably open
for the user responsible for the application pool running the web service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln(..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
>Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLine in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony


--
Happy Coding!
Morten Wennevik [C# MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #4
Hello!

I'm not trying to do anything but if I want to get some trace information I
thought it might be easier to write to
the Console then creating a file and then write to it.

I use localhost and IIS and I have tried to use this Consol.Writeln(..) but
no Console is created.
So you mean if I use localhost and IIS and create a console from the process
class I will be able to write to a console window.

Or do you think it's impossible to create a Console from the process class
and then write to it like a normal console application
when using localhost and IIS.
//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably open
for the user responsible for the application pool running the web service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln(..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLine in any app, but the text will just vanish
unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony
<jo*****************@telia.com>
wrote:

Hello!

When you have windows forms you have the same possibility as when you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony



--
Happy Coding!
Morten Wennevik [C# MVP]

--
Happy Coding!
Morten Wennevik [C# MVP]

Aug 16 '06 #5
Tony,

I'm guessing the Console will be created, but noone will be able to see
it. Stick to writing to a file. In the end, data in the console will
vanish once you close it, but you can still check out the file later on.

[Create Simple Error Log Files using ASP.NET and C#]
http://www.codeproject.com/aspnet/createlogfiles.asp

There are many ways to log information

On Wed, 16 Aug 2006 10:29:32 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

I'm not trying to do anything but if I want to get some trace
information I
thought it might be easier to write to
the Console then creating a file and then write to it.

I use localhost and IIS and I have tried to use this Consol.Writeln(..)
but
no Console is created.
So you mean if I use localhost and IIS and create a console from the
process
class I will be able to write to a console window.

Or do you think it's impossible to create a Console from the process
class
and then write to it like a normal console application
when using localhost and IIS.
//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
>Hi Tony,

The console would open on the server side as the text will be written on
the server, and therefore invisible to the client. It would probably
open
for the user responsible for the application pool running the web
service,
but I'm not sure if it will be visible on screen if that users is logged
on to the server.

To create a new console window you can start it using the process class,
or you can route the output streams to wherever you chose.

What are you trying to do? What kind of information are you planning to
write in the console, and who should see it?
On Wed, 16 Aug 2006 09:33:53 +0200, tony <jo*****************@telia.com>
wrote:
Hello!

Assume I use a Webrowser or a web client to call a webservice can I
then
open a Console in the webservice method and write to it.
I can't just use Console.Writeln(..) in the webservice method.
You mentioned that I must open the Console first. How do I do that?
Have you some easy example how thta is being done?

//Tony

"Morten Wennevik" <Mo************@hotmail.comskrev i meddelandet
news:op***************@tr024.bouvet.no...
Hi Tony,

Who would see the console? What would you show on the console?
You can use Console.WriteLine in any app, but the text will just
vanish
>unless you open a console first.
On Wed, 16 Aug 2006 08:58:51 +0200, tony
<jo*****************@telia.com>
>wrote:

Hello!

When you have windows forms you have the same possibility as when
you
have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I
don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET
application
developed by using
"inline" or "Code behind" technics?

//Tony

--
Happy Coding!
Morten Wennevik [C# MVP]


--
Happy Coding!
Morten Wennevik [C# MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 16 '06 #6
Hello,

It's possible to get a trace of your application in a Console.

You may be interested by System.Diagnostics.Debug class :
http://msdn2.microsoft.com/en-us/lib...ics.debug.aspx
http://www.dotnetspider.com/namespac...spx?ClassId=74

If you use Visual Web Developer, you can display this debug console
with :
Debug =Windows =Output

Good Luck !

tony a écrit :
Hello!

When you have windows forms you have the same possibility as when you have a
Console application
to use Console.Writeln to write whatever on the screen.

Now to my question:
Is it possible to use Console.Writeln when you have a Webservice. I don't
think it's possible but
just to be sure I ask you?

Is it possible to use Console.Writeln when you have a ASP.NET application
developed by using
"inline" or "Code behind" technics?

//Tony
Aug 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Henry Chen | last post by:
We have a multi-tier application using .net remoting. In server side, I can use either service and console application to process client request. I sometimes can not find the problem with the...
3
by: Gionni | last post by:
Hello everyone, I'm have a window application, but it is a console application too. I'll try to explain better: if I call the program without parameters the GUI starts. Otherwise it runs as a...
7
by: ajikoe | last post by:
Hello All, It is said that : Enabling the console window is easy. From Microsoft Visual Studio®, right-click on the project and choose Properties. Change the output type from Windows Application...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
3
by: inpreet | last post by:
I am trying to build a console application in C#.Net. This application is suppose to run in background without user interaction. How can I hide console to appear?
8
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
1
by: Jothi | last post by:
Hi, We are a small application development group. We have about 100 Users who primarily use Microsoft Related Products. Our Application Development was purley based on a CLient Server Model using...
0
by: suedasszyy | last post by:
Haiiii.... i'm new for VB.net. can someone help me to solve those question? is it possible to draw a graph such as Sin graph using console application? if not, how can i draw a graph...
2
by: SheetalGandhi24 | last post by:
Hi I need to use the System.IO namespace in the Win32 console application. Any clues for doing the same? Basically, I need to load the files of a particular folder in an array. I need to do...
4
by: federico | last post by:
Hello, I am trying to setup a Visual Basic "Console" application for searching Outlook folders. To this end I am trying to implement a Handler for the Outlook.Application.AdvancedSearchComplete...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.