Skip to main content

How to run inline code in SharePoint aspx pages....

"An error occurred during the processing of test.aspx. Code blocks are not allowed in this file".To enable this you need to modify the web.config file for your SharePoint Site Collection.
Modify the web.config file
1. Open the web.config file and make the following change:



The PageParserPaths xml tags will be there already you just need to add the line in between.
2. Save web.config .

Comments

Popular posts from this blog

Control when a document is displayed: Managing Item Scheduling

How to enable Scheduling Start Date and Scheduling End Date for pages /Documents library for Subsites. 1. After creating new Document library  / pages  go to List Settings. 2. In section General Settings select the link Versioning Settings, and enable" 1) Content approval to Yes . 2) Dcoument version history to created major and minor(draft) version . 3. In Section General Settings select the link " Manage Item Schueduling and select the option Enable scheduling of items in this list . 4. You will see Scheduling Start Date and Scheduling End Date in allitems pages.

Add a site template to Central Administration so it's available when you create a new site collection

When you create a new site collection, Central Administration creates a top level site and offers you the standard set of templates for that top level site. If you want to add a custom template to the list of templates offered by Central Administration, simply: From the command prompt, use STSADM -O ADDTEMPLATE: stsadm.exe -o addtemplate -filename filename -title "friendly name" -description "description" Type stsadm -help addtemplate for details. Then restart IIS by typing iisreset.