equivalence of PHP header("Content-Type: text/javascript");

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi,

i need in my asp.net the equivalence of PHP header("Content-Type:
text/javascript");

Thanks
Ben
 
If you mean setting it programmatically in code, it is

Response.AddHeader("Content-Type", "text/javascript");

Or you mean something else?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://blogs.microsoft.co.il/blogs/egoldin
http://msmvps.com/blogs/egoldin


Ben said:
Hi,

i need in my asp.net the equivalence of PHP header("Content-Type:
text/javascript");

Thanks
Ben


__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4354 (20090821) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4354 (20090821) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
Back
Top