private IsHtmlResponse ( System.Web.HttpContextBase httpContext ) : bool | ||
httpContext | System.Web.HttpContextBase | |
Результат | bool |
bool IsHtmlResponse(HttpContextBase httpContext)
{
return httpContext.Response.ContentType == "text/html" ||
httpContext.Response.ContentType == "application/xhtml+xml";
}