A Rapid Development Framework for Community Server

Forms - FormHTMLElements.cst

Forms - FormHTMLElements.cst
posted by daveburke
11-02-2008


Downloads: 156
File size: 42.1kB
Views: 1,400

This template creates the Chameleon Form's HTML form elements and resource strings.

Property Descriptions

ChildControls: It is assumed that the Chameleon Form Class has been created, as the Child Controls are cut-n-pasted from that form's properties.  Remember to remove any line spaces and that a line break exists at the end of the string collection (but not two :-)  It should appear as the following:

 

 

CssClass: The CSS Class used with the form labels.  Default: DRIVEFormLabel

AltResourceXMLFile: It is generally a good idea to use an alternative Resources file rather than the default Resources.xml.  Default: DRIVE.  Example: [DRIVE].xml.

UseAltResourceXML: Boolean to determine whether or not to use an alternative Resources file.

SourceTable: Source SQL Table to generate form element types

ResourcePrefix: Resource item prefix.  Default: driveform.  Example: [driveform]_FirstName

 

Sample Generated Code     


<CSControl:ResourceControl ID="PostIDLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_postiddropdownlist" />
<asp:DropDownList ID="PostIDDropDownList" runat="server" />
<CSControl:ResourceControl ID="SectionIDLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_sectioniddropdownlist" />
<asp:DropDownList ID="SectionIDDropDownList" runat="server" />
<CSControl:ResourceControl ID="DriveTitleLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_drivetitletextbox" />
<asp:TextBox ID="DriveTitleTextBox" runat="server" />
<CSControl:ResourceControl ID="DriveDescriptionLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_drivedescriptiontextbox" />
<asp:TextBox ID="DriveDescriptionTextBox" runat="server" />
<CSControl:ResourceControl ID="PostDateTimeLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_postdatetimedatetimeselector" />
<TWC:DateTimeSelector ID="PostDateTimeDateTimeSelector" DateTimeFormat="MMMM d, yyyy" ShowCalendarPopup="true"  runat="server" />
<CSControl:ResourceControl ID="ActiveLabel" runat="server" CssClass="DRIVEFormLabel"
    ResourceName="driveform_activecheckbox" />
<asp:CheckBox ID="ActiveCheckBox" runat="server" />
<CSControl:ResourceLinkButton ID="SubmitButton" runat="server" CssClass="AppCreateGridButton" ResourceName="SubmitButton" />


 

 

Please sign-in to post a comment or question about this template or topic