예제 #1
0
 protected void ButtonClear_Click(object sender, EventArgs e)
 {
     foreach (string textBoxId in sTextBoxes.Keys)
     {
         (ContainerPanel.FindControl(textBoxId) as TextBox).Text = string.Empty;
     }
 }
예제 #2
0
 protected void MassValidator_ServerValidate(object source, ServerValidateEventArgs args)
 {
     foreach (string textBoxId in sTextBoxes.Keys)
     {
         if ((ContainerPanel.FindControl(textBoxId) as TextBox).Text.Length != 0)
         {
             args.IsValid = true;
             return;
         }
     }
     args.IsValid = false;
 }
예제 #3
0
    protected void Unified_TextChanged(object sender, EventArgs e)
    {
        TextBox textBoxSender = sender as TextBox;
        TextBox configurableTextBox;


        foreach (string textBoxId in sTextBoxes.Keys)
        {
            configurableTextBox = ContainerPanel.FindControl(textBoxId) as TextBox;
            if (configurableTextBox != textBoxSender)
            {
                configurableTextBox.Text = String.Format("{0:0.##############}", (double.Parse(textBoxSender.Text, CultureInfo.InvariantCulture) * sTextBoxes[textBoxSender.ID][configurableTextBox.ID]));
            }
        }
    }