Standardize the Web Control


  1. Add public style properties for each of the composited controls.
  2. Recreate the AIP web control to use the typical templated-control paradigm; e.g., use a container and a default template.
  3. Get rid of the AIP placeholder controls since they aren't really necessary.
    Instead of placeholder controls, the following controls must be found in a custom template or a runtime error should occur:
    ID: Type
    Image: System.Web.UI.WebControls.Image
    Validator: System.Web.UI.WebControls.CustomValidator
    The following controls should be optional, although if they are specified then the AIP web control should apply their styles and attributes like normal:
    ID: Type
    Title: System.Web.UI.ITextControl
    Instruction: System.Web.UI.ITextControl
    Label: System.Web.UI.ITextControl
    ValidationText: System.Web.UI.ITextControl
    RequiredValidator: System.Web.UI.IValidator
Closed Apr 2, 2008 at 2:29 AM by davedev
Just "Text" is required for the text box ID instead of "ValidationText", although it is optional anyway. Although, setting the appropriate ID will allow you to set the style using the TextBoxStyle property on the AIP web control and the text will automatically be cleared on every post back.