Skip Navigation Links >> Community >> Support Folders >> Support Home >> Compfy Folders >> Documentation >> Installation and Configuration >> ASP.NET User Control Installation
Skip Navigation Links.
Compfy Folders ( Posts: 5 Last: 6/11/2010 )
User Forums ( Posts: 2 Last: 5/11/2010 )
Documentation ( Posts: 2 Last: 5/22/2010 )
Installation and Configuration ( Posts: 2 Last: 5/22/2010 )
Text Post
ASP.NET User Control Installation ( Posts: 1 Last: 5/22/2010 )
Text Post
Web Site Template Installation ( Posts: 1 Last: 5/22/2010 )
Versions ( Posts: 1 Last: 6/11/2010 )
ASP.NET User Control Installation
5/9/2010 11:52:01 PM Last modified: 5/22/2010 10:42:31 PM
Joined: 4/17/2010
Posts: 5

In order to install the Compfy Folders ASP.NET User Control, copy directories "/_compfyfolders" and "/js" into the root folder of your web site. Copy the files from the "/bin" directory in your "/bin" folder. Register the user control and use it in your .aspx file as shown in the following example:

<%@ Register TagPrefix="cmpfy" TagName="compfy" Src="~/_compfyfolders/UI_Compfy.ascx" %>

<cmpfy:compfy id="compfy" runat="server" />

Many of the User Controls included in the "_compfyfolders" folder can be used independently. Controls like UI_Recent.ascx, UI_Captcha.ascx,  user account management controls, and other can be placed directly onto the master page or embedded into other pages. This is demonstrated by

Create Compfy Folders database tables and other objects using the SQL script "create database.sql" located in the "/_compfyfolders/_sql" directory. You can do it conveniently by using Microsoft SQL Server Management Studio. Compfy Folders tables can be located in the ASP.NET services database or placed into a separate database.

Provide a Connection String to your Compfy Folders database in the "DataBaseConnectionString" element of the Compfy_AppSettings.config file located in the  "/_compfyfolders/_config" directory as shown in the following example:

  <DataBaseConnectionString>; Database=yourdb;User ID=youruser; Password=yourpassword; Trusted_Connection=False; </DataBaseConnectionString>

To allow users attach files to posts, create a folder designated for storage of the attached files. Make sure that the "network service" user has read, write, and execute permissions for that folder. Provide virtual path to this folder in the Compfy_AppSettings.config file for example as follows:


If you will use user management embedded into the Compfy Folders User Control or woud like Compfy Folders to send you error reports, provide mail settings in the Web.config of your web site as shown in the following example:

   <smtp from="">
    <network host="" password="yourpassword" port="yourproviderssmtpport" userName="" />

Add the following sections to the Web.config file in the root directory of your web site:

              <add name="CompfySiteMapProvider"
                   type="System.Web.XmlSiteMapProvider, System.Web, 
	               Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                   siteMapFile="~/_compfyfolders/SiteMap.sitemap" />

    <anonymousIdentification enabled="true" />
    <profile enabled="true">
        <group name="Compfy">
            <add name="UserProfile" type="Compfy.UserProfile" serializeAs="Xml"/>        
            <add name="UserSettings" type="Compfy.UserSettings" serializeAs="Xml" allowAnonymous="true"/>
      <roleManager enabled="true" />

For error reporting, provide additionally an email address to send error reports to in the Compfy_AppSettings.config file located in the  "/_compfyfolders/_config" directory:


Let the Compfy Folders User Control know which ASP.NET role is the administrator role of the Forum. Administrator(s) can set all other permissions on the forum, can edit, lock and unlock user profiles, can edit and delete any of the folders or posts. The administrator role is set in the Compfy_AppSettings.config as follows:


 If you have any questions, please post them in the Q&A section and we do our best to answer them. (You would need to create an account and to login in order to post.)

Replies: Page: First Last  Posts/Page:
  Page: First Last  Posts/Page:

Registered users:
Users online:
Folders total:
Posts total:
Server timezone (for anonymous users):
(UTC-08:00) Pacific Time (US & Canada)
Powered by Com(p)fy