<register>

Custom controls open up your data-entry forms to an ever-expanding world of controls developed for XMod. These custom controls perform differing functions and can greatly enhance your form's functionality. The <custom> tag, working in conjunction with the <register> tag, is used to tell XMod you're using a custom control and where to find it. It provides some basic information that XMod needs in order to create the control.

 

If you're familiar with ASP.NET programming, the <register> tag is essentially the same as the <%@ Register ...%> directive.

ATTRIBUTES <register>:

tagprefix

This is the prefix XMod uses to match the  assembly and namespace with the custom control instance  (specified in the <custom> tag).  (Required) [String value]

namespace

The namespace in which custom control resides. This information should be supplied by the control developer.

assembly

This is the name of the assembly (DLL) in which the controls reside. Note, you do not specify the path to the DLL or the ".dll" extension. This information should be supplied by the control developer.

 

EXAMPLE

Below is a sample for a hypothetical custom control. Note that, in addition to the <register> tag, you'll also need to specify a <custom> tag wherever you want to use the custom control.

 

<register tagprefix="acme" namespace="Acme.XMod.CustomControls" assembly="Acme.XModCtrls"></register>