Last post Dec 14, 2010 03:10 PM by rstrahl
Dec 04, 2010 10:06 AM|akkad|LINK
as the subject, i have a handler that process all kind of request to the server (path="*"),
whenever i try to set the content type, it will be overridden by a default value "text/html",
i am using IIS7 + Framework 4 in integrated mode, any idea?
Dec 14, 2010 03:10 PM|rstrahl|LINK
You can definitely set the Response.ContentType in a handler to anything you choose.
Make sure that your handler is actually getting called and your Response.ContentType setting code actually is run.
It's easy enough to test by just creating a very simple ProcessRequest method that changes the content Type and returns a string...
+++ Rick ---