Asp.net header | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 10, 2005 ⬆ |
◄ ► |
Author | Message | |||
Dimitris Chatzopoulos New member Username: Xatzo Post Number: 5 Registered: 01-2005 |
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 |
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 |
The Response.ContentType = "text/plain" was the solution for the VB.Net Thank you. |