Monday, March 29, 2010

Bmi For Females In Canada

Allow running C # code in SharePoint pages

In the web.config of the web application, add the following line to the node \u0026lt;PageParserPaths> :

\u0026lt;PageParserPaths>
\u0026lt; ; PageParserPath virtualPath = "{ relative path, eg / _catalogs / masterpage / *} " CompilationMode = "Always" AllowServerSideScript = "True" IncludeSubfolders = "true" />


Next, in aspx page itself:

\u0026lt;script runat="server">
protected void Page_Load (object sender, EventArgs e) {

{Your code}

} \u0026lt;/ script>

0 comments:

Post a Comment