none
the server tag is not well formed.

    Question

  • Hi, I'm trying to restrict permissions on a web-part so that only certain users can see it. I have put this line at the top of the web zone:

    <SharePoint:SPSecurityTrimmedControl runat="server"PermissionsString="ManageWeb">

    and this line at the end:

    </SharePoint:SPSecurityTrimmedControl>

    But I get this error message: An error occurred during the processing of /Will/pages/home 1.aspx. The server tag is not well formed.

    Any ideas?

    Thanks

    Thursday, September 30, 2010 1:06 PM

Answers

  • May be this is happening becase there is not space between runat="server" and PermissionsString="ManageWeb"

    <SharePoint:SPSecurityTrimmedControl runat="server"PermissionsString="ManageWeb">

    or other controls on the same page causing error.


    Regards, Sandip Patil, .Net,Sharepoint Developer www.worldofsharepoint.com
    • Marked as answer by whitleywill Friday, October 01, 2010 11:19 AM
    Thursday, September 30, 2010 1:33 PM

All replies

  • May be this is happening becase there is not space between runat="server" and PermissionsString="ManageWeb"

    <SharePoint:SPSecurityTrimmedControl runat="server"PermissionsString="ManageWeb">

    or other controls on the same page causing error.


    Regards, Sandip Patil, .Net,Sharepoint Developer www.worldofsharepoint.com
    • Marked as answer by whitleywill Friday, October 01, 2010 11:19 AM
    Thursday, September 30, 2010 1:33 PM
  • Thanks Sandip, Doh!
    Friday, October 01, 2010 11:20 AM