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

B

Ben

Hi,

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

Thanks
Ben
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top