subhank P
how to validate Numeric value in all TextBox(s) in ASP Panel controller ?
By subhank P in LINQ on Apr 03 2013
  • Man Mundhra
    Mar, 2023 10

    Use textbox events like change, keyup, keydown, keypress events ...

    • 0
  • subhank P
    Apr, 2013 3

    private bool CheckZeroValue(Panel Container1)
            {
                foreach (Control control in Container1.Controls)
                {
                    if (control is TextBox)
                    {
                        TextBox textBox = (control as TextBox);
                        if (string.IsNullOrEmpty(textBox.Text.Trim()))
                        {
                            throw new Exception("Either Null or Empty !");
                            textBox.Focus();
                            return false;
                        }
                    }
                }
                return true;

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS