Accelerator Controls Reference

[Table of Contents]

The Accelerator Controls are extended ASP.NET web controls that you can use in conjuntion with Data Academy Form Builder to create your own applications based on the Data Academy Framework.

To use the Accelerator Controls, you need to register the Accelerator component in your .aspx page.

<%@ Register TagPrefix="AcceleratorDLL" Namespace="AcceleratorDLL" Assembly="AcceleratorDLL" %>

RichTextBox

A rich text edit control, producing HTML output, based on TinyMCE.

<AcceleratorDLL:RichTextBox runat="server" ID="txtRichEdit" Width="300" Height="200" Buttons="bullist,numlist,hr" />

NB that you need to set "ValidateRequest" to "false" for your page, or you will get a validation error on post-back, warning you not to include HTML tags in your post-back.

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="frmDetail.aspx.vb" Inherits="frmDetail" ValidateRequest="false" %>

  • To change the buttons to be displayed by the control, edit the Buttons property.
  • Available buttons include: bold, italic, underline, link, bullist, numlist, hr, justifyleft, justifycenter, justifyright, sub, sup, strikethrough

ComboBox

A drop-down list, with the ability to type free text in addition to the selectable options.

<AcceleratorDLL:ComboBox runat="server" ID="cboCombo" />

This component is actually an extended TextBox.

To add items to the drop-down, you must edit the "code behind", either calling Items.Add or using the BindComboBox method of StandardBase.

cboCombo.Items.Add("Option 1")
cboCombo.Items.Add("Option 2")

Or, assuming the page inherits from AcceleratorDLL.StandardBase.

Me.BindComboBox(cboCombo, "MyField", "tblMyTable")

DateBox

A really simple date selection control, designed to eliminate any possible scope for day/ month confusion!

<AcceleratorDLL:DateBox id="dtDateBox" runat="server" ShowDate="true" ShowTime="false"> 

  • To retrieve the currently selected value in the code-behind, call dtDateBox.DateValue.
  • Selecting NULL in the "day" drop-down will produce a result of DateTime.MinValue. This is interpreted by Data Academy Form Builder Data Objects as a database NULL.
  • To show the time, set ShowTime="true".
  • To change the year range displayed, set YearStart and YearEnd.