Asp.net header

Asp.net header SearchSearch
Author Message
Dimitris Chatzopoulos
New member
Username: Xatzo

Post Number: 5
Registered: 01-2005
Posted on Tuesday, January 18, 2005 - 08:24 pm:   

hi all

how can I use use a header for text/plain content-type in an aspx page?

thanks in advance
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3946
Registered: 10-2002
Posted on Thursday, January 20, 2005 - 10:10 pm:   

I know that the way that you do it in ASP is to start your response with the following:

<%
Response.ContentType="text/plain"


I'm not sure if this is different for ASP.Net, but if it is, I would expect it to be very similar.

You need to make sure that this is the first directive in your script. It seems to ignore the directive if it is not first (or at least very near the top if there are other directives that must be first).

-bn
Dimitris Chatzopoulos
New member
Username: Xatzo

Post Number: 8
Registered: 01-2005
Posted on Monday, January 24, 2005 - 10:31 am:   

The Response.ContentType = "text/plain" was the solution for the VB.Net

Thank you.