Console.WriteLine to Response.Write?

.net, c#, webforms

Solution

The using of `Console.WriteLine("{0}{1}:", myString, myProp);` doesn't make sense in this case, but you can use the `string.Format()` method:

Response.Write(string.Format("{0}{1}:", myString, myProp));

Problem

I am in a WebForm, and I'd like to use the common Console.Writeline with this format: ``` Console.WriteLine("{0}{1}:", myString, myProp); ``` with Response.Write (putting code on client side). Can I?

Original source