B Ben Aug 21, 2009 #1 Hi, i need in my asp.net the equivalence of PHP header("Content-Type: text/javascript"); Thanks Ben
E Eliyahu Goldin Aug 21, 2009 #2 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 Click to expand... __________ Information from ESET NOD32 Antivirus, version of virus signature database 4354 (20090821) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
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 Click to expand... __________ Information from ESET NOD32 Antivirus, version of virus signature database 4354 (20090821) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
B Ben Aug 21, 2009 #4 Thanks to both ... Thorsten Tarrach said: Response.ContentType = "text/javascript"; should do the trick. Click to expand...
Thanks to both ... Thorsten Tarrach said: Response.ContentType = "text/javascript"; should do the trick. Click to expand...