This is about web service and not aspx pages.
Still a bit strange. A web service returns data so usually you just populate
the data structure (a class for example) with data and it will be
serialized/unserialized for you so that is its transmitted transparently
client side. You don't write "out of the band" content inside the serialized
response.
I don't mean using Console because that is not possible. I mean what can I
write insted of using this Console.WriteLine to write something to the
client..
Once again I'm not sure how it would make sense in the context of a web
service. Let's say that your web service returns a string. You'll just
populate this string with whatever you want. You won't write directly
something to the output stream sent to the client.
We'll likely still needs more details :
- do you have a web service that works ?
- if yes what do you want to add with this additional content (a trace, just
some additional data ?)
- if no, where are you stuck. Try perhaps first a simple web service that
returns just a string and then build on this...