Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Content-type : text/html
Message
From
04/12/2004 10:52:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
HTTP
Title:
Content-type : text/html
Miscellaneous
Thread ID:
00966906
Message ID:
00966906
Views:
45
Hi All,

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

This is what I have so far... Am I far off? How can I do this?
using System;

class Hello
{
     static void Main()
     {
          Console.ContentType = "text/html";
          Console.WriteLine("Hello World");
     }
}
This is the c++ of what I want to do but in c#.
#include <iostream.h>

int main(){
    cout << "Content-type: text/plain" << endl << endl
    << "Hello World";
}
Can some-one please offer some help on this. It is really doing my head in.

Thanks and Kind Regards,
Tarran Walker
Next
Reply
Map
View

Click here to load this message in the networking platform