Home Page Link
  Skip Navigation Links
Log in to create posts To create new posts or to reply to existing ones, you must be registered and logged in!
  
View: 
Post
Started: 6/8/2010 11:38 AM
Picture Placeholder: Freddy Kgapola
Freddy Kgapola
Sharepoint:SPSecurityTrimmedControl
Hi I want to use SPSecurityTrimmedControl to hide and show content for authenticated users and anonymous users but when I use it for anonymous users it does not work:
 
 <Sharepoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly">
        Anonymous user can see this.
    </SharePoint:SPSecurityTrimmedControl>
I want to use it specifically because i can wrap a web part zone in it unlike the "loginview", where you can only place html:
 
<asp:LoginView  runat="server">
      <AnonymousTemplate >
                          <b>This will be visible only to anonymous users and </b>
      </AnonymousTemplate>
       <LoggedInTemplate>
                            This will be visible only to authenticated users and
       
       does work…
       </LoggedInTemplate>
</asp:LoginView>
 

Do you know how I can get it working or is there a similar work around?


Feedback