Software Support Forum


Research answers to your questions, or request support for SharePoint
Solutions software products. Our forums are grouped by software product.
Welcome to Software Support Forum Sign in | Join | Help
in Search

"The event handler 'OnClick' is not allowed in this page."

Last post 11-18-2008 7:57 AM by dnotorious. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 09-29-2008 4:45 PM

    "The event handler 'OnClick' is not allowed in this page."

    When I goto site settings. Under the Provisioning Configuration, I click on Provisioning Groups

    The following error is  displayed on the page

    " An error occurred during the processing of . The event handler 'OnClick' is not allowed in this page. "

     

    Where do i start?

    Denzil Fernandes
    TDBFG

    www.td.com
  • 09-30-2008 9:58 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    upon further investigation, this occurs when a custom "system master page" for the site is used. I've used this for all other sites with no problem.

    Denzil Fernandes
    TDBFG

    www.td.com
  • 09-30-2008 10:18 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    When using a custom master page you may need a page parser path to allow this type of behavior.

    http://msdn.microsoft.com/en-us/library/ms562040.aspx

    Jeremy Luerkens
    Manager, Software Production
    SharePoint Solutions
    Filed under:
  • 09-30-2008 11:16 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    Pages Crashes when I add that code.

     

     

    here is my master page.. save as TD.master , some graphics and skin may not load, but use it as both site master and system master for your definition. then tell me what whether this works for you.

     

     

    <%@Master language="C#"%>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
    <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>

    <HTML dir="<%$Resources:wss,multipages_direction_dir_value%>" runat="server" xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr">
    <HEAD runat="server">
     <META Name="GENERATOR" Content="Microsoft SharePoint">
     <META Name="progid" Content="SharePoint.WebPartPage.Document">
     <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
     <META HTTP-EQUIV="Expires" content="0">
     <SharePoint:RobotsMetaTag runat="server"/>
     <Title ID=onetidTitle><asp:ContentPlaceHolder id=PlaceHolderPageTitle runat="server"/></Title>
     <SharePoint:ScriptLink language="javascript" name="core.js" Defer="true" runat="server"/>
     <SharePoint:CustomJSUrl runat="server"/>
     <SharePoint:SoapDiscoveryLink runat="server"/>
     <asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"/>
     <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true"/>
     <SharePoint:ScriptLink language="javascript" name="TDMWCore.js"  Defer="True" runat="server"/>
     <SharePoint:CssLink runat="server"/><SharePoint:Theme runat="server"/>
     <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/TDdefault.css%>" runat="server"/>
     
    <style type="text/css">
    select.ms-sbscopes, td.ms-sbscopes, .ms-sbtable {font-size:10pt;font-weight:100;font-family:Trebuchet MS, Verdana;}
    .ms-sbplain {font-size:10pt;font-style:italic;font-weight:bold;font-family:Trebuchet MS, Verdana;color:green;}
    .ms-sblink a:link,.ms-sblink a:visited {font-size:10pt;font-weight:normal;font-family:Trebuchet MS, Verdana;color:red;}
    </style>
    </HEAD>
    <BODY scroll="yes" onload="BLOCKED SCRIPTif (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
    <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
    <Meetings:PropertyBag runat="server"/>
    <WebPartPages:SPWebPartManager id="m" runat="Server"/>

    <table align="center" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" >
    <tr>
     <td class="pageTop"><div class="pageBottom">&nbsp;</div></td>
     <td width="1000px">
     <span class="pageTop" style="height:7px;width:1000px;background-repeat:repeat-x" >
     <!---BreadCrumb---->
      <span >
          <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigationSiteMap" runat="server">
        <asp:SiteMapPath SiteMapProvider="SPSiteMapProvider" id="GlobalNavigationSiteMap" RenderCurrentNodeAsLink="true" SkipLinkText="" NodeStyle-CssClass="my-BreadCrumb"   PathSeparatorStyle-CssClass="my-BreadCrumb" PathSeparator=" / " runat="server"/>
          </asp:ContentPlaceHolder>
         </span> 
     <!---BreadCrumb--->
     </span>
      <div class="tableHeader">
       <div>
        <span class="my-siteTitle" >
            <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="MyonetidProjectPropertyTitle">
           <SharePoint:ProjectProperty Property="Title" runat="server" />
         </SharePoint:SPLinkButton>
        </span>
        <span>
          <a class="searchLinkText" href="#" onclick="window.external.AddSearchProvider('/Style Library/TDSearch.xml')">
          Add Our SharePoint Site Search To Your Browser (IE 7)
          </a>
        </span>
       </div>
      </div>
    <TABLE class="ms-main" CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%" HEIGHT="100%">
     <tr><td><asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server">
      <table CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%">
      <tr>
       <td colspan=4 class="my-BreadCrumb">
       <span id="TurnOnAccessibility" style="display:none">
          <a href="#" class="ms-skip" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();return false;">
       <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode"/></a>
       </span>
       <A href="BLOCKED SCRIPT;" onclick="BLOCKED SCRIPTthis.href='#mainContent';" class="ms-skip" AccessKey="<%$Resources:wss,maincontent_accesskey%>" runat="server">
       <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode"/></A>
       <table cellpadding=0 cellspacing=0 height=100% class="ms-globalleft">
         <tr>
       <td class="ms-globallinks" style="padding-top: 2px;" height=100% valign=middle>
        <div>
         <span id="TurnOffAccessibility" style="display:none">
        <a href="#" class="ms-acclink" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();return false;">
        <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode"/></a>
         </span>
         </div>
        </td>
         </tr>
       </table>
       <table cellpadding="0" cellspacing="0" height=100% class="ms-globalright">
        <tr>
         <td valign="middle" class="ms-globallinks" style="padding-left:3px; padding-right:6px;">
         <SharePoint:DelegateControl runat="server" ControlId="GlobalSiteLink0"/>
         </td>
        <td valign="middle" class="WelcomeMenu">
       <wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
       </wssuc:Welcome>
        </td>
        <td style="padding-left:1px;padding-right:3px;" class="my-globallinks">|</td>
         <td valign="middle" >
        <table cellspacing="0" cellpadding="0">
         <tr>
          <td class="my-globallinks" valign="bottom">
         <SharePoint:DelegateControl ControlId="GlobalSiteLink1" Scope="Farm" runat="server"/></td>
          <td class="my-globallinks" valign="bottom">
         <SharePoint:DelegateControl ControlId="GlobalSiteLink2" Scope="Farm" runat="server"/></td>
         </tr>
        </table>
         </td>
         <td valign="middle" >
        <a href="BLOCKED SCRIPTTopHelpButtonClick('NavBarHelpHome')" AccessKey="<%$Resources:wss,multipages_helplink_accesskey%>" id="TopHelpLink" title="<%$Resources:wss,multipages_helplinkalt_text%>" runat="server"><img align='absmiddle' border=0 src="/_layouts/images/helpicon.gif" alt="<%$Resources:wss,multipages_helplinkalt_text%>" runat="server"></a>
        &nbsp;
         </td>
         </tr>
       </table>
       </td>
         </tr>
        </table>
       </asp:ContentPlaceHolder></td></tr>
     <tr>
      <td class="ms-globalTitleArea">
       <table width=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
      <td id="GlobalTitleAreaImage" class="ms-titleimagearea">
      <SharePoint:SiteLogoImage id="onetidHeadbnnr0" LogoImageUrl="/_layouts/images/titlegraphic.gif" runat="server"/><br>&nbsp;</td>
      <td class="ms-sitetitle" width=100%>
        <asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server">
       <!--<h1 class="ms-sitetitle">
         <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle" __designer:Preview="&lt;a id=&quot;ctl00_onetidProjectPropertyTitle&quot; href=&quot;/&quot;&gt;
        TD SharePoint Services
         &lt;/a&gt;" __designer:Values="&lt;P N='NavigateUrl' T='~site/' /&gt;&lt;P N='PermissionsString' T='EmptyMask' /&gt;&lt;P N='ControlStyle'&gt;&lt;P N='Font' ID='1' /&gt;&lt;/P&gt;&lt;P N='Font' R='1' /&gt;&lt;P N='ID' T='onetidProjectPropertyTitle' /&gt;&lt;P N='Page' ID='2' /&gt;&lt;P N='TemplateControl' ID='3' /&gt;&lt;P N='AppRelativeTemplateSourceDirectory' R='-1' /&gt;">
        <SharePoint:ProjectProperty Property="Title" runat="server" />
         </SharePoint:SPLinkButton>
        </h1>-->
        </asp:ContentPlaceHolder>
      </td>
      <td style="padding-top:8px;" valign=top>
        <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
        <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
        </asp:ContentPlaceHolder>
      </td>
        </tr>
       </table>
      </td>
     </tr>
     <TR>
      <TD id="onetIdTopNavBarContainer" WIDTH=100% class="ms-bannerContainer">
      <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
       <table class="ms-bannerframe" border="0" cellspacing="0" cellpadding="0" width="100%">
         <tr>
       <td nowrap valign="middle"></td>
       <td class=ms-banner width=99% nowrap ID="HBN100">
        <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
     <SharePoint:AspMenu
       ID="TopNavigationMenu"
       Runat="server"
       DataSourceID="topSiteMap"
       EnableViewState="false"
       AccessKey="<%$Resources:wss,navigation_accesskey%>"
       Orientation="Horizontal"
       StaticDisplayLevels="2"
       MaximumDynamicDisplayLevels="1"
       DynamicHorizontalOffset="0"
       StaticPopoutImageUrl="/_layouts/images/menudark.gif"
       StaticPopoutImageTextFormatString=""
       DynamicHoverStyle-BackColor="#CBE3F0"
       SkipLinkText=""
       StaticSubMenuIndent="0"
       CssClass="ms-topNavContainer">
      <StaticMenuStyle/>
      <StaticMenuItemStyle CssClass="my-topnav" ItemSpacing="0px"/>
      <StaticSelectedStyle CssClass="my-topnavselected" />
      <StaticHoverStyle CssClass="my-topNavHover" />
      <DynamicMenuStyle  BackColor="#F2F3F4" BorderColor="#A7B4CE" BorderWidth="1px"/>
      <DynamicMenuItemStyle CssClass="my-topNavFlyOuts"/>
      <DynamicHoverStyle CssClass="my-topNavFlyOutsHover"/>
      <DynamicSelectedStyle CssClass="my-topNavFlyOutsSelected"/>
     </SharePoint:AspMenu>
     <SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource">
      <Template_Controls>
       <asp:SiteMapDataSource
         ShowStartingNode="False"
         SiteMapProvider="SPNavigationProvider"
         id="topSiteMap"
         runat="server"
         StartingNodeUrl="sid:1002"/>
      </Template_Controls>
     </SharePoint:DelegateControl>
        </asp:ContentPlaceHolder>
       </td>
       <td class=ms-banner>&nbsp;&nbsp;</td>
       <td valign=bottom align=right style="position:relative;bottom:0;left:0;">
        <table cellpadding=0 cellspacing=0 border=0>
         <tr>
          <td>
        <table height=100% class="ms-siteaction" cellpadding=0 cellspacing=0>
         <tr>
            <td class="ms-siteactionsmenu" id="siteactiontd">
            <SharePoint:SiteActions runat="server" AccessKey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain"
          PrefixHtml="&lt;div&gt;&lt;div&gt;"
          SuffixHtml="&lt;/div&gt;&lt;/div&gt;"
          MenuNotVisibleHtml="&amp;nbsp;">
          <CustomTemplate>
          <SharePoint:FeatureMenuTemplate runat="server"
           FeatureScope="Site"
           Location="Microsoft.SharePoint.StandardMenu"
           GroupId="SiteActions"
           UseShortId="true"
           >
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create"
            Text="<%$Resources:wss,viewlsts_pagetitle_create%>"
            Description="<%$Resources:wss,siteactions_createdescription%>"
            ImageUrl="/_layouts/images/Actionscreate.gif"
            MenuGroupId="100"
            Sequence="100"
            UseShortId="true"
            ClientOnClickNavigateUrl="~site/_layouts/create.aspx"
            PermissionsString="ManageLists, ManageSubwebs"
            PermissionMode="Any" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
            Text="<%$Resources:wss,siteactions_editpage%>"
            Description="<%$Resources:wss,siteactions_editpagedescription%>"
            ImageUrl="/_layouts/images/ActionsEditPage.gif"
            MenuGroupId="100"
            Sequence="200"
            ClientOnClickNavigateUrl="BLOCKED SCRIPTMSOLayout_ChangeLayoutMode(false);"
            />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
            Text="<%$Resources:wss,settings_pagetitle%>"
            Description="<%$Resources:wss,siteactions_sitesettingsdescription%>"
            ImageUrl="/_layouts/images/ActionsSettings.gif"
            MenuGroupId="100"
            Sequence="300"
            UseShortId="true"
            ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"
            PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
            PermissionMode="Any" />
          </SharePoint:FeatureMenuTemplate>
          </CustomTemplate>
         </SharePoint:SiteActions>
         </td>
         </tr>
        </table>
          </td>
         </tr>
        </table>
       </td>
         </tr>
        </table>
      </asp:ContentPlaceHolder>
      </TD>
     </TR>
     <asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server">
      <wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server"/>
     </asp:ContentPlaceHolder>
     <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
     <tr>
      <td> 
      <SharePoint:DelegateControl runat="server" ControlId="PublishingConsole"
        PrefixHtml="&lt;tr&gt;&lt;td colspan=&quot;4&quot; id=&quot;mpdmconsole&quot; class=&quot;ms-consolemptablerow&quot;&gt;"
        SuffixHtml="&lt;/td&gt;&lt;/tr&gt;">
     </SharePoint:DelegateControl>
      </td>
     </tr>
     </asp:ContentPlaceHolder>
     <TR height="100%"><TD><TABLE width="100%" height="100%" cellspacing="0" cellpadding="0">
     <tr>
      <td class="ms-titlearealeft" id="TitleAreaImageCell" valign="middle" nowrap><div style="height:100%" class="ms-titleareaframe"><asp:ContentPlaceHolder id="PlaceHolderPageImage" runat="server"/></div></td>
      <td class="ms-titleareaframe" id="TitleAreaFrameClass">
       <asp:ContentPlaceHolder id="PlaceHolderTitleLeftBorder" runat="server">
      <div class="ms-titleareaframe"><IMG SRC="/_layouts/images/blank.gif" width=1 height=100% alt=""></div>
       </asp:ContentPlaceHolder>
      </td>
     <td valign=top id="onetidPageTitleAreaFrame" class='ms-pagetitleareaframe' nowrap>
       <table id="onetidPageTitleAreaTable" cellpadding=0 cellspacing=0 width=100% border="0">
        <tr>
      <td valign="top" class="ms-titlearea">
       <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">
       <asp:SiteMapPath SiteMapProvider="SPContentMapProvider" id="ContentMap" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/> &nbsp;
       </asp:ContentPlaceHolder>
      </td>
        </tr>
        <tr>
      <td height=100% valign=top ID=onetidPageTitle class="ms-pagetitle">
        <h2 class="ms-pagetitle">
       <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
        </h2>
      </td>
        </tr>
       </table>
      </td>
      <td class="ms-titlearearight">
      <asp:ContentPlaceHolder id="PlaceHolderMiniConsole" runat="server"/>
      <asp:ContentPlaceHolder id="PlaceHolderTitleRightMargin" runat="server">
    <div class="ms-titleareaframe" style='height:100%'><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></div>
    </asp:ContentPlaceHolder></td>
     </tr>
    <asp:ContentPlaceHolder id="PlaceHolderTitleAreaSeparator" runat="server"/>
     <TR>
       <TD class="ms-leftareacell" valign=top height=100% id="LeftNavigationAreaCell">
        <table class=ms-nav width=100% height=100% cellpadding=0 cellspacing=0>
      <tr>
       <td>
        <TABLE height="100%" class=ms-navframe CELLPADDING=0 CELLSPACING=0 border="0">
         <tr valign="top">
       <td width="4px"><IMG SRC="/_layouts/images/blank.gif" width=4 height=1 alt=""></td>
       <td valign="top" width="100%">
         <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarDataSource" runat="server" />
         <asp:ContentPlaceHolder id="PlaceHolderCalendarNavigator" runat="server" />
         <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarTop" runat="server"/>
         <asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">
        <div class="ms-quicklaunchouter">
        <div class="ms-quickLaunch" style="width:100%">
        <h3 class="ms-standardheader"><label class="ms-hidden">
        <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,quiklnch_pagetitle%>" EncodeMethod="HtmlEncode"/></label>
        <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages">
        <div class="ms-quicklaunchheader"><SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/></div>
        </SharePoint:SPSecurityTrimmedControl>
        </h3>
        <Sharepoint:SPNavigationManager
        id="QuickLaunchNavigationManager"
        runat="server"
        QuickLaunchControlId="QuickLaunchMenu"
        ContainedControl="QuickLaunch"
        EnableViewState="false">
        <div>
         <SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">
          <Template_Controls>
          <asp:SiteMapDataSource SiteMapProvider="SPNavigationProvider" ShowStartingNode="False" id="QuickLaunchSiteMap" StartingNodeUrl="sid:1025" runat="server" />
          </Template_Controls>
         </SharePoint:DelegateControl>
         <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap" runat="server" Orientation="Vertical" StaticDisplayLevels="2" ItemWrap="true" MaximumDynamicDisplayLevels="0" StaticSubMenuIndent="0" SkipLinkText="">
          <LevelMenuItemStyles>
           <asp:menuitemstyle CssClass="ms-navheader" />
           <asp:menuitemstyle CssClass="ms-navitem" />
          </LevelMenuItemStyles>
          <LevelSubMenuStyles>
           <asp:submenustyle CssClass="ms-navSubMenu1" />
           <asp:submenustyle CssClass="ms-navSubMenu2" />
          </LevelSubMenuStyles>
          <LevelSelectedStyles>
           <asp:menuitemstyle CssClass="ms-selectednavheader" />
           <asp:menuitemstyle CssClass="ms-selectednav" />
          </LevelSelectedStyles>
         </SharePoint:AspMenu>
        </div>
        </Sharepoint:SPNavigationManager>
        <Sharepoint:SPNavigationManager
        id="TreeViewNavigationManager"
        runat="server"
        ContainedControl="TreeView">
          <table class="ms-navSubMenu1" cellpadding="0" cellspacing="0" border="0">
         <tr>
           <td>
          <table class="ms-navheader" width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
           <td nowrap id="idSiteHierarchy">
             <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" id="idNavLinkSiteHierarchy" Text="<%$Resources:wss,treeview_header%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
           </td>
            </tr>
          </table>
           </td>
         </tr>
          </table>
          <div class="ms-treeviewouter">
         <SharePoint:SPHierarchyDataSourceControl
          runat="server"
          id="TreeViewDataSource"
          RootContextObject="Web"
          IncludeDiscussionFolders="true"
         />
         <SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="BLOCKED SCRIPT_spRecordScrollPositions(this);" Style="overflow: auto;height: 400px;width: 150px; ">
         <Sharepoint:SPTreeView
          id="WebTreeView"
          runat="server"
          ShowLines="false"
          DataSourceId="TreeViewDataSource"
          ExpandDepth="0"
          SelectedNodeStyle-CssClass="ms-tvselected"
          NodeStyle-CssClass="ms-navitem"
          NodeStyle-HorizontalPadding="2"
          SkipLinkText=""
          NodeIndent="12"
          ExpandImageUrl="/_layouts/images/tvplus.gif"
          CollapseImageUrl="/_layouts/images/tvminus.gif"
          NoExpandImageUrl="/_layouts/images/tvblank.gif"
         >
         </Sharepoint:SPTreeView>
         </Sharepoint:SPRememberScroll>
          </div>
        </Sharepoint:SPNavigationManager>
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr><td>
      <table class="ms-recyclebin" width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr><td nowrap>
      <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/recyclebin.aspx" id="idNavLinkRecycleBin" ImageUrl="/_layouts/images/recycbin.gif" Text="<%$Resources:wss,StsDefault_RecycleBin%>" PermissionsString="DeleteListItems"/>
      </td></tr>
      </table>
      </td></tr></table>
        </div>
        </div>
         </asp:ContentPlaceHolder>
         <asp:ContentPlaceHolder id="PlaceHolderLeftActions" runat="server"></asp:ContentPlaceHolder>
       </td>
         </tr>
         <tr><td colspan=2><asp:ContentPlaceHolder id="PlaceHolderNavSpacer" runat="server"><IMG SRC="/_layouts/images/blank.gif" width=138 height=1 alt=""></asp:ContentPlaceholder></td></tr>
        </TABLE>
       </td>
       <td><asp:ContentPlaceHolder id="PlaceHolderLeftNavBarBorder" runat="server"></asp:ContentPlaceHolder></td>
      </tr>
        </table>
       </TD>
       <td><asp:ContentPlaceHolder id="PlaceHolderBodyLeftBorder" runat="server">
    <div class="ms-pagemargin"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></div>
    </asp:ContentPlaceHolder></td>
       <td class='ms-bodyareacell' valign="top">
      <PlaceHolder id="MSO_ContentDiv" runat="server">
      <table id="MSO_ContentTable" width=100% height="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
        <tr>
        <td class='ms-bodyareaframe' valign="top" height="100%">
          <A name="mainContent"></A>
        <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server"/>
        <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server">
        </asp:ContentPlaceHolder>
        </td>
        </tr>
      </table>
      </PlaceHolder>
       </td>
       <td class="ms-rightareacell"><asp:ContentPlaceHolder id="PlaceHolderBodyRightMargin" runat="server">
    <div class="ms-pagemargin"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></div>
    </asp:ContentPlaceHolder></td>
     </TR>
    <tr>
     <td class="ms-pagebottommarginleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-pagebottommargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-bodyareapagemargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-pagebottommarginright"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
    </tr>
     </TABLE>
     </TD></TR>
     <TR><TD>
       <div class="pageContentBottom">
       <div class="pageFooter" >
        <br>
        <br>
       </div></div>
       
       <div class="pageContentFooter" >&nbsp;
       </div>
       

     

     </TD></TR>
      </TABLE>

     


     </td>
     <td class="pageTop"><div class="pageBottom">&nbsp;</div></td>

    </table>
     
      <asp:ContentPlaceHolder id="PlaceHolderFormDigest" runat="server">
      <SharePoint:FormDigest runat=server/>
      </asp:ContentPlaceHolder>
       <input type="text" name="__spDummyText1" style="display:none;" size=1/>
       <input type="text" name="__spDummyText2" style="display:none;" size=1/>
      <asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"/>
     <asp:ContentPlaceHolder id="PlaceHolderBodyAreaClass" runat="server"/>
     <asp:ContentPlaceHolder id="PlaceHolderTitleAreaClass" runat="server"/>
      </form>
      </BODY>
    </HTML>

    Denzil Fernandes
    TDBFG

    www.td.com
  • 09-30-2008 12:22 PM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    You will probably need to add your OnClick event handler as a delegate to the Click event on the link in your codebehind and remove the OnClick attribute in your .aspx page. For example, see below where the event handler is wired up to the event within the OnInit event handler.

    Client Code (.aspx)
    ----------------------
    <asp:LinkButton ID="authorize"  runat="server" >Authorize</asp:LinkButton>

    Codebehind (.cs)
    ---------------------
    namespace SPLibrary
    {
        public class Default : Microsoft.SharePoint.WebPartPages.WebPartPage
        {
            protected LinkButton authorize;

            protected override void OnInit(EventArgs e)
            {
                authorize.Click += new EventHandler(authorize_OnClick);
            }

            protected void authorize_OnClick(object sender, EventArgs e)
            {
                LinkButton authorize = FindControl("authorize") as LinkButton;
                authorize.Text = "Label Changed";
                // required business logic can be added.
            }
        }

    If you need to use client side script, remove the runat="server" attribute and you may need to change OnClick to OnClientClick.

    David Fisher
    Software Engineer
    SharePoint Solutions
  • 09-30-2008 5:05 PM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    Strange but the built in master pages from MOSS are okay, example blueband.master etc. There seems to be an error with mine.

    Since I'm not a developer I can't try your suggestions. Because I will be modifying your AddProvProfWiz*.aspx page which has the Onclick event. This file is on several WFE machines

    Denzil Fernandes
    TDBFG

    www.td.com
  • 10-01-2008 8:59 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

    As I mentioned above a PageParserPath entry in your web.config file will correct this issue. Did you try this option?

    Jeremy Luerkens
    Manager, Software Production
    SharePoint Solutions
    Filed under:
  • 10-01-2008 9:38 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

     

    Sorry, but I have other issues right now. I will attempt this as soon as I get the basic functionality working. for now I am using the default.master for the system master and my custom.master for the site master page.

    I will try and modify the web.config later this evening on both my WFE servers

    Denzil Fernandes
    TDBFG

    www.td.com
  • 11-18-2008 7:57 AM In reply to

    Re: "The event handler 'OnClick' is not allowed in this page."

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

     

    After adding the above config to my web.config I was able to use my custom masterpage..

     

     


     

    Denzil Fernandes
    TDBFG

    www.td.com
    Filed under:
Page 1 of 1 (9 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems