Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2007, 08:57 AM
Authorized User
 
Join Date: Jul 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Tremmorkeep Send a message via MSN to Tremmorkeep Send a message via Yahoo to Tremmorkeep
Default RoleGroups common templates

what I DONT know is this. If someone is logged in, no matter what role they belong to, I want to show them a link to edit their profile, as well as a few other common tasks (ie site based messaging, mailbox, blah blah). Is there a 'common' template that will be shown and then the rolegroups role match stuff shown beneath or above it? For example. My site has 'members' and it has 'authors' I want to have an 'editprofile' link available to both but it would be nice to NOT have to put that link in both rolegroup templates. The problem being that my site has several roles in it and a few template items are common across the board.

Thanks

 
Old May 11th, 2007, 09:30 AM
Authorized User
 
Join Date: Jul 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Tremmorkeep Send a message via MSN to Tremmorkeep Send a message via Yahoo to Tremmorkeep
Default

I got it, just so you know. Not sure if is the right way..but

<asp:LoginView id="loginview1" runat="server">
 <RoleGroups>
  <asp:RoleGroup Roles="Administrators,Members">
   <ContentTemplate>
   all my common links
   </ContentTemplate>
  </asp:RoleGroup>
 </RoleGroups>
</asp:LoginView>

<asp:LoginView id="loginview1" runat="server">
 <RoleGroups>
   <asp:RoleGroup Roles="Administrators">
    <ContentTemplate>
     Administrators Links
    </ContentTemplate>
   </asp:RoleGroup>
  <asp:RoleGroup Roles="Members">
   <ContentTemplate>
    Members Links
   </ContentTemplate>
  </asp:RoleGroup>
 </RoleGroups>
</asp:LoginView>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile common bendjoe BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 13 October 12th, 2010 02:26 AM
Common value scandalous Excel VBA 1 December 21st, 2007 11:01 PM
RoleGroups and Roles durban ASP.NET 2.0 Basics 3 September 19th, 2007 01:24 PM
what is the common approach for it? thanks Robin1 Classic ASP Databases 6 September 11th, 2004 04:14 AM
Common question, not so common answer? flyin ADO.NET 5 March 24th, 2004 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.