<SharePoint>
<SafeModeMaxControls="200"CallStack="false"DirectFileDependencies="10"
TotalFileDependencies="50"AllowPageLevelTrace="false">
<PageParserPaths>
<PageParserPathVirtualPath="/*"CompilationMode="Always"
AllowServerSideScript="true"IncludeSubFolders="true" />
</PageParserPaths>
</SafeMode>
.
.
.
</SharePoint>
You can also change the VirtualPath depending upon the requirement just like if you want to add server side code in the content pages for a specific List/Library, then you can change the VirtualPath as “/List/TestCustomList/*”