Skip Navigation Links
Skip navigation links
Products
Support
Downloads
Press
Site Map
Satisfied Customers
All-in-one VHD
Request Demo
Contact Us
Skip navigation links
Alert Manager 2007
Extranet Collaboration Manager
How do I install ExCM?
How do I deploy to a site collection and activate ExCM - Standard Edition's features?
How do I configure forms authentication in SharePoint?
How do I create a new delegated administrator?
How do I manage users in the authorization store?
How do I manage roles in the authorization store?
How do I audit delegation activities?
How do I change the format and content of ExCM - SE e-mail messages?
How do I create a new delegation provider?
How do I invite users to join my site?
How do I allow or prevent uninvited users to join my site?
How do I enable user self-registration?
How do I obtain and apply a product license for trialware or purchased software?
How do I gather custom data from users when they register for site access?
How do I allow users to manage their own profile data?
How do I manage profile data for my site's users?
How do I enable anonymous access to Register.aspx so users can self-register?
Extranet Collaboration Manager FAQ
How do I take a custom action upon SharePoint FBA user login?
How do I leverage the FBA user registration events provided by ExCM?
How do I configure Delegation Settings in ExCM?
How do I create a user automation job?
How do I delete a user automation job?
How can I view the policies of a user automation job?
How can I update the policies of a user automation job?
How do I change the schedule of a user automation job?
How do I update the notification messages of a user automation job?
I would like to know more about user automation
How do I configure Registration Settings in ExCM?
How do I modify the login page to include the forgot my password and registration link?
How do I perform a manual installation of ExCM?
What features need to be activated to use ExCM?
What web properties are used by the ExCM application?
How do I upgrade Extranet Collaboration Manager?
A valid license could not be obtained.
General
SPA
Article Index
How do I gather custom data from users when they register for site access? 
 

With ExCM - SE, before either invited or uninvited users may access your site they must first visit a user registration page and provide a username, password, and password recovery question.  Uninvited users must also provide their e-mail address on the registration page (an invited user's e-mail address is already known).  You can extend the user registration page with custom data fields to gather additional information about a new user when he or she registers for access to your site. 

ExCM - SE leverages the ASP.NET Profile provider to manage user profile data.  The Profile provider in ASP.NET stores and retrieves information about your site’s users by using profile field definitions located in the web application’s web.config file. The following is a simple profile with FirstName, LastName, CompanyName, PhoneNumber, Birthday and "opt in" check box properties.

<!-- profile provider -->

<profile defaultProvider="AspNetSqlProfileProvider" enabled="true">

<providers>

<clear />

<add name="AspNetSqlProfileProvider" connectionStringName="PartnerUsersSqlConnString" applicationName="/" type=" System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers>

<properties>

<add name="FirstName" customProviderData="DisplayName=First Name;Order=1;IsRequired=true;" />

<add name="LastName" customProviderData="DisplayName=Last Name;Order=2;IsRequired=true;" />

<add name="CompanyName" customProviderData="DisplayName=Company Name;IsRequired=true;Order=3" />

<add name="PhoneNumber" customProviderData="DisplayName=Phone Number;ValidationRegularExpression=((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4};ValidationErrorMessage=Invalid Format xxx-xxx-xxxx;Order=4" />

<add name="Birthday" type="System.DateTime" customProviderData="DisplayName=Birthday;Order=6" />

<add name="OkToEmail" type="System.Boolean" defaultValue="true" customProviderData="DisplayName=OK to E-mail?;Order=5" />

</properties>

</profile>

The profile definition should be placed within the <system.web/> element of the web.config file.  In this example, the profile provider we have defined is named 'AspNetSqlProfileProvider', and connects to its storage database using 'SoftwareDivisionSqlConnString' as its connection string.  If you are using forms based authentication (FBA) for your SharePoint web appplication, this is probably the same connection string you have defined for FBA. 

As you can see in the example, six additional user profile fields called 'FirstName', 'LastName', 'CompanyName', 'PhoneNumber', 'Birthday' and 'OkToEmail' are defined.  Severeal of these fields have the 'IsRequired' flag set to true, indicating they are required.  The 'PhoneNumber' field has a DisplayName of 'Phone Number' and although this field is not required, it does have a regular expression-based validator to ensure that the user enters his or her phone number in the correct format.

The result of this example profile configuration can be seen in the following screen shot taken from the user registration page (/_layouts/SPSolutions/Delegation/Register.aspx) of ExCM - SE:

 

Each profile property field defaults to being a String (text) data type.  However, ExCM - SE also supports Boolean and DateTime property field types.  The Boolean field is displayed to users as a check box, and the DateTime field as a calendar picker.