Com(p)fy
Skip Navigation Links >> Community >> Support Folders >> Support Home >> Compfy Folders >> Documentation >> Installation and Configuration >> ASP.NET User Control Installation
Contents
Skip Navigation Links.
CollapseFolder
Compfy Folders ( Posts: 5 Last: 6/11/2010 )
ExpandFolder
User Forums ( Posts: 2 Last: 5/11/2010 )
CollapseFolder
Documentation ( Posts: 2 Last: 5/22/2010 )
CollapseFolder
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 )
Folder
ExpandFolder
Versions ( Posts: 1 Last: 6/11/2010 )
ExpandFolder
Folder
Q&A
Folder
 
ASP.NET User Control Installation
5/9/2010 11:52:01 PM Last modified: 5/22/2010 10:42:31 PM
Greg
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:

Code
<%@ 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 www.compfy.com.

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:

Code
  <DataBaseConnectionString> Server=yourhost.com; 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:

Code
<AttachmentStoreFolderPath>/attachments</AttachmentStoreFolderPath>
 

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:

Code
 <system.net>
  <mailSettings>
   <smtp from="yourusername@yourdomain.com">
    <network host="mail.yourdomain.com" password="yourpassword" port="yourproviderssmtpport" userName="yourusername@yourdomain.com" />
   </smtp>
  </mailSettings>
 </system.net>
 

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

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

    <anonymousIdentification enabled="true" />
    
    <profile enabled="true">
      <properties>
        <group name="Compfy">
            <add name="UserProfile" type="Compfy.UserProfile" serializeAs="Xml"/>        
            <add name="UserSettings" type="Compfy.UserSettings" serializeAs="Xml" allowAnonymous="true"/>
        </group>
      </properties>
    </profile>
    
      <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:

Code
  <ErrorMessageEmail>youruser@yourdomain.com</ErrorMessageEmail>
 

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:

Code
<AdministratorRole>Administrator</AdministratorRole>
 

 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:
8
Users online:
1
Folders total:
14
Posts total:
5
Server timezone (for anonymous users):
(UTC-08:00) Pacific Time (US & Canada)
Powered by Com(p)fy