View Full Version : RequiredFieldValidator.IsValid
dbireporter
05-05-2011, 11:39 AM
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?
Tasslehoff
05-05-2011, 12:06 PM
Is your application generating an error? Or have you tried setting a breakpoint to test your code?
dbireporter
05-06-2011, 02:21 AM
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.
wisemx
05-06-2011, 04:28 AM
...On the control itself have you double-checked the ControlToValidate ?
Tasslehoff
05-06-2011, 06:36 AM
It looks like you're trying to assign a Boolean value to a String variable.
vBulletin® ©Jelsoft Enterprises Ltd.