This project has moved and is read-only. For the latest updates, please go here.

Adding MembershipRequestWebPart.webpart to CustomLogin-Page

Nov 18, 2015 at 12:04 PM
Hey Guys
I'm completley new in working with SharePoint and not a big expert in web-design.
I installed SharePoint 2013 and use it in mixed auth mode.
I followed the instructions for setting up the FBA-pack and everything works fine with manually added fba-users.
Then I added a custom-login-page and I can login with AD-user and fba. No Problem until now.

Now I want to implement the MembershipRequest.webpart to make it possible for new user to get an account. How do I have to implement this on my custom-login-page (code lines??)
Or more generally, how to I add Webparts to the SharePoint-sites?

Thx for your answers
Nov 18, 2015 at 7:02 PM
If you want to add a web part on an application page, you can add it to the ASPX just like you would a standard control. Here's an example of how I do it for custom login pages:

first you need a register directive to the assembly that contains the control:
<%@ Register TagPrefix="FBA" Namespace="Visigo.Sharepoint.FormsBasedAuthentication"
    Assembly="Visigo.Sharepoint.FormsBasedAuthentication, Version=, Culture=neutral, PublicKeyToken=9dba9f460226d31d" %>
And then in the body you can just reference the control itself:
    <FBA:MembershipRequestWebPart frametype="None" chrometype="None" id="PasswordWebPart" runat="server" 
        groupName="FBA Users"
        HipErrorMessage="<br>The characters do not match the picture"
Marked as answer by beetles1990 on 11/19/2015 at 12:14 AM
Nov 19, 2015 at 8:14 AM
Thank you very much. This works like a charm. Very nice and useful!!