Configuration

Normally, It isn't necessary any configuration to integrate Folks with a web application. But, for advanced features and other customizations you can configure it. The basic configuration scenarios are:
  1. Control Registration - Register Folks in Web.config instead of every Page.
  2. ViewState Optimization - To not send the ViewState through Folks' requests.

Control Registration

To register Folks in Web.config you can just add the code below inside pages' controls element.

<add tagPrefix="folks" assembly="Folks" namespace="Folks.UI" />

Example

<pages autoEventWireup="false" enableViewStateMac="false"  >
	<controls>
		<add tagPrefix="folks" assembly="Folks" namespace="Folks.UI" />
	</controls>
</pages>


ViewState Optimization

To use the FolksManager's OptimizeViewState property you need to configure a Adapter for the Page type. To do this, create a .browser file in App_Browsers ASP.NET folder and add the code below:

<browsers>
	<browser refID="Default">
		<controlAdapters>
			<adapter controlType="System.Web.UI.Page"
                     adapterType="Folks.UI.Adapters.FolksPageAdapter, Folks" />
		</controlAdapters>
    </browser>
</browsers>

Last edited Mar 7, 2008 at 9:49 PM by edurdias, version 2

Comments

No comments yet.