[SIZE=2][/SIZE][SIZE=2][COLOR=#008000]'Add the title row
[/COLOR][/SIZE][SIZE=2]parLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
parLbl.ID = "parLbl_title"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(parLbl)
parLbl.CssClass = "authPL_Title"
chdLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl.ID = "chdLbl_title"
parLbl.Controls.Add(chdLbl)
chdLbl.CssClass = "authCL_Title"
chdLbl.Text = "Create CMP"
[/SIZE][SIZE=2][COLOR=#008000]'Add a linebreak
[/COLOR][/SIZE][SIZE=2]lineBreak = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Literal
lineBreak.ID = "lineBreak_title"
parLbl.Controls.Add(lineBreak)
lineBreak.Text = "<br/>"
[/SIZE][SIZE=2][COLOR=#008000]'Add the required fields message row
[/COLOR][/SIZE][SIZE=2]parLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
parLbl.ID = "parLbl_req"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(parLbl)
parLbl.CssClass = "authPL_Req"
chdLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl.ID = "chdLbl_req"
parLbl.Controls.Add(chdLbl)
chdLbl.CssClass = "authCL_Req"
chdLbl.Text = "Required fields are in <font color=""#ff3300"">red</font>"
[/SIZE][SIZE=2][COLOR=#008000]'Add a linebreak
[/COLOR][/SIZE][SIZE=2]lineBreak = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Literal
lineBreak.ID = "lineBreak_req"
parLbl.Controls.Add(lineBreak)
lineBreak.Text = "<br/>"
[/SIZE][SIZE=2][COLOR=#008000]'Add the description row
[/COLOR][/SIZE][SIZE=2]parLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
parLbl.ID = "parLbl_desc"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(parLbl)
parLbl.CssClass = "authPL_Desc"
ctlImg = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Image
ctlImg.ID = "ctlImg_desc"
parLbl.Controls.Add(ctlImg)
ctlImg.CssClass = "authCL_Desc_Image"
ctlImg.ImageUrl = "images/icons/" & gdsCom.getImage(gdsCom.translateForAppType("Folder"))
chdLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl.ID = "chdLbl_desc"
parLbl.Controls.Add(chdLbl)
chdLbl.CssClass = "authCL_Desc"
chdLbl.Text = "CMP - Contains information about an equipment change request"
[/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#008000]'Add a linebreak
[/COLOR][/SIZE][SIZE=2]lineBreak = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Literal
lineBreak.ID = "lineBreak_desc"
parLbl.Controls.Add(lineBreak)
lineBreak.Text = "<br/>"
[/SIZE][SIZE=2][COLOR=#008000]'Add the CMPNumber row
[/COLOR][/SIZE][SIZE=2]parLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
parLbl.ID = "CMPNumber"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(parLbl)
parLbl.CssClass = "authPL_Prop"
chdLbl1 = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl1.ID = "lbl1_CMPNumber"
parLbl.Controls.Add(chdLbl1)
chdLbl1.CssClass = "authCL1_Prop"
[/SIZE][SIZE=2][COLOR=#008000]'Set the text of the first property child label
[/COLOR][/SIZE][SIZE=2]chdLbl1.Text = "<font color=""red"">CMP Number*</font>"
chdLbl2 = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl2.ID = "lbl2_CMPNumber"
parLbl.Controls.Add(chdLbl2)
chdLbl2.CssClass = "authCL2_Prop"
[/SIZE][SIZE=2][COLOR=#008000]'Add an input device as a control to the second property
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#008000]'child label (ID = ctl_<Name in the XML file>)
[/COLOR][/SIZE][SIZE=2]ctlTextBox = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.TextBox
ctlTextBox.ID = "ctl_CMPNumber"
chdLbl2.Controls.Add(ctlTextBox)
[/SIZE][SIZE=2][COLOR=#008000]'Set the style of the textbox
[/COLOR][/SIZE][SIZE=2]ctlTextBox.CssClass = "authCL2_Prop_TextBox"
ctlTextBox.MaxLength = 5
[/SIZE][SIZE=2][COLOR=#008000]'Set the textbox to uppercase
[/COLOR][/SIZE][SIZE=2]ctlTextBox.Style.Add("text-transform", "uppercase")
[/SIZE][SIZE=2][COLOR=#008000]'Set the default button for the textbox
[/COLOR][/SIZE][SIZE=2]gdsCom.SetDefaultButton([/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].Page, ctlTextBox, defaultButton)
ctlValidator = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.RequiredFieldValidator
ctlValidator.ID = "vd_CMPNumber"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(ctlValidator)
ctlValidator.ControlToValidate = "ctl_CMPNumber"
ctlValidator.Text = "*"
ctlValidator.ErrorMessage = "CMP Number is required."
ctlValidator.Display = ValidatorDisplay.None
ctlValidator.EnableClientScript = [/SIZE][SIZE=2][COLOR=#0000ff]False
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] ctlValidator2 [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.CompareValidator
ctlValidator2.ID = "vd2_CMPNumber"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(ctlValidator2)
ctlValidator2.ControlToValidate = "ctl_CMPNumber"
ctlValidator2.Text = "*"
ctlValidator2.ErrorMessage = "CMP Number must be a number."
ctlValidator2.Display = ValidatorDisplay.None
ctlValidator2.EnableClientScript = [/SIZE][SIZE=2][COLOR=#0000ff]False
[/COLOR][/SIZE][SIZE=2]ctlValidator2.ValueToCompare = 1
ctlValidator2.Type = ValidationDataType.Integer
ctlValidator2.Operator = ValidationCompareOperator.GreaterThan
[/SIZE][SIZE=2][COLOR=#008000]'Add a linebreak to the property parent label
[/COLOR][/SIZE][SIZE=2]lineBreak = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Literal
lineBreak.ID = "lineBreak_CMPNumber"
parLbl.Controls.Add(lineBreak)
lineBreak.Text = "<br/>"
[/SIZE][SIZE=2][COLOR=#008000]'Add the CMPDescription row
[/COLOR][/SIZE][SIZE=2]parLbl = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
parLbl.ID = "CMPDescription"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(parLbl)
parLbl.CssClass = "authPL_Prop"
chdLbl1 = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl1.ID = "lbl1_CMPDescription"
parLbl.Controls.Add(chdLbl1)
chdLbl1.CssClass = "authCL1_Prop"
[/SIZE][SIZE=2][COLOR=#008000]'Set the text of the first property child label
[/COLOR][/SIZE][SIZE=2]chdLbl1.Text = "<font color=""red"">CMP Description*</font>"
chdLbl2 = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Label
chdLbl2.ID = "lbl2_CMPDescription"
parLbl.Controls.Add(chdLbl2)
chdLbl2.CssClass = "authCL2_Prop"
[/SIZE][SIZE=2][COLOR=#008000]'Add an input device as a control to the second property
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#008000]'child label (ID = ctl_<Name in the XML file>)
[/COLOR][/SIZE][SIZE=2]ctlTextBox = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.TextBox
ctlTextBox.ID = "ctl_CMPDescription"
chdLbl2.Controls.Add(ctlTextBox)
[/SIZE][SIZE=2][COLOR=#008000]'Set the style of the textbox
[/COLOR][/SIZE][SIZE=2]ctlTextBox.CssClass = "authCL2_Prop_TextBox"
ctlTextBox.MaxLength = 100
[/SIZE][SIZE=2][COLOR=#008000]'Set the textbox to uppercase
[/COLOR][/SIZE][SIZE=2]ctlTextBox.Style.Add("text-transform", "uppercase")
[/SIZE][SIZE=2][COLOR=#008000]'Set the default button for the textbox
[/COLOR][/SIZE][SIZE=2]gdsCom.SetDefaultButton([/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].Page, ctlTextBox, defaultButton)
ctlValidator = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.RequiredFieldValidator
ctlValidator.ID = "vd_CMPDescription"
[/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].P0.Controls.Add(ctlValidator)
ctlValidator.ControlToValidate = "ctl_CMPDescription"
ctlValidator.Text = "*"
ctlValidator.ErrorMessage = "CMP Description is required."
ctlValidator.Display = ValidatorDisplay.None
ctlValidator.EnableClientScript = [/SIZE][SIZE=2][COLOR=#0000ff]False
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#008000]'Add a linebreak to the property parent label
[/COLOR][/SIZE][SIZE=2]lineBreak = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Web.UI.WebControls.Literal
lineBreak.ID = "lineBreak_CMPDescription"
parLbl.Controls.Add(lineBreak)
lineBreak.Text = "<br/>"
[/SIZE]