Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting The Content Type
Message
From
02/12/2004 16:37:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
HTTP
Title:
Setting The Content Type
Miscellaneous
Thread ID:
00966521
Message ID:
00966521
Views:
47
Hi All,

I assume very easy but for the life of me I can't figure it out.

I am trying to set HTTP headers to "text/html" and I am having no joy.

This is what I have so far... Am I far off?
using System;

class Hello
{
	static void Main()
	{
		Console.ContentType = "text/html";
		Console.WriteLine("Hello World");
	}
}
Thanks for your help.
Tarran
Reply
Map
View

Click here to load this message in the networking platform