Im currently working on implementing a .net membership into my umbraco installation and I have a few queries that hopefully someone will be able to help me with.
The website that I am building has two types of members which are
Site membership - which allows the user to sign up to utilise the full features that the site offers in comparison to standard anon users
Advertising account - which allows users to sign up to advertise on the website. Once they log in they will be able to access there own dashboard where they can update the information about what they are advertising
Question 1 - Is it possible to create two types of members that can log in through the same login control and based on what member type they have registered with (decided through the registration form) the system will direct them to a particular page. Eg I would like the site members to go to their dash board and the advertising members to go to their dash board?
Question 2 - I have the following markup (see below) inserted into my master template and it works great based on one account (advertising). In the logged in template i would like a logout link and a dashboard link but my problem is how can I determine which member is logged in and based on that change the dashboard link url to direct them to the appropriate page (either the advertising dashboard or site member dashboard). I have set up role based permissions on the advertiser-dashboard.aspx page and if it is a site member who selects the link they are just directed to the sign up page because that is what i set using this
Error Page Advertising AccountDeleteChoose... Used when people are logged on, but do not have access
I want the system to recognised which member is logged in and direct them them to go tho their dashboard :)
<div id ="login-view"> <asp:LoginView ID="UmbracoLoginView" runat="server">
.Net Membership
Hey Guys,
Im currently working on implementing a .net membership into my umbraco installation and I have a few queries that hopefully someone will be able to help me with.
The website that I am building has two types of members which are
Question 1 - Is it possible to create two types of members that can log in through the same login control and based on what member type they have registered with (decided through the registration form) the system will direct them to a particular page. Eg I would like the site members to go to their dash board and the advertising members to go to their dash board?
Question 2 - I have the following markup (see below) inserted into my master template and it works great based on one account (advertising). In the logged in template i would like a logout link and a dashboard link but my problem is how can I determine which member is logged in and based on that change the dashboard link url to direct them to the appropriate page (either the advertising dashboard or site member dashboard). I have set up role based permissions on the advertiser-dashboard.aspx page and if it is a site member who selects the link they are just directed to the sign up page because that is what i set using this
Error Page
Advertising Account Delete Choose...
Used when people are logged on, but do not have access
I want the system to recognised which member is logged in and direct them them to go tho their dashboard :)
<div id ="login-view">
<asp:LoginView ID="UmbracoLoginView" runat="server">
<AnonymousTemplate>
</AnonymousTemplate>
<LoggedInTemplate>
<p>Welcome <asp:LoginName ID="LoginName" runat="server" /></p>
<asp:LoginStatus ID="LoginStatus1" runat="server" LoginText=" " LogoutText="Logout " LogoutPageUrl="/advertising-account.aspx" LogoutAction="Redirect" />
<a class="last" href="advertiser-dashboard.aspx">Dashboard</a>
</LoggedInTemplate>
</asp:LoginView>
</div>
Hope my explination is clear and would be cool if someone can help
Paul
is working on a reply...