RequiredFieldValidator.IsValid

Discussion in 'ASP.NET / ASP.NET Core' started by dbireporter, May 5, 2011.

  1. On an ASP.NET 3.5 web page, in my VB code when I refer to the value of RequiredFieldValidator.IsValid I get no response.

    Anyone have a solution to this?
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Is your application generating an error? Or have you tried setting a breakpoint to test your code?
     
  3. The RequiredFieldValidator is in a panel with a textbox, label and button.
    The VB code for the button includes "Label19.Text = RequiredFieldValidator1.IsValid"
    When run, the label text displays nothing. No error is generated.
     
  4. ...On the control itself have you double-checked the ControlToValidate ?
     
  5. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    It looks like you're trying to assign a Boolean value to a String variable.
     

Share This Page