Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

apsx page with code blocks in /SitePages/ directory question

$
0
0

Hi I have an inline c# web page in the SitePages in the root site of a sharepoint install to get the code to run i added 

      <PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true"/>
      </PageParserPaths>

to the web.config in the root of the sp tree what i would prefer is to narrow it down to 

/SitePages/DataDictionary/Default.aspx being the only page that can run

or

/SitePages/DataDictionary/  being the only directory that can run asp.net code 

when i change /* to /SitePages/DataDictionary/   or /SitePages/DataDictionary/default.aspx it goes back to saying codeblocks not allowedin asp.net pages any ideas on how I can do this?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>