This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AllowCrossSiteJson : ActionFilterAttribute | |
{ | |
public override void OnActionExecuting(ActionExecutingContext filterContext) | |
{ | |
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache); | |
HttpContext.Current.Response.Cache.SetNoStore(); | |
var headers = Enumerable.ToList(HttpContext.Current.Request.Headers.AllKeys); | |
headers.Add("X-HTTP-Method-Override"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes" /> | |
<xsl:template match="/faq_page"> | |
<xsl:if test="count(//question) > 5"> | |
<xsl:for-each select="category"> |
NewerOlder