IsValid always returns true on server-side under FireFox 0.9

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

The code is in a server control:

If Me.Page.IsValid Then
ExecuteSomething
End If

ExecuteSomething is always called and the validators always return True for
IsValid, even though their properties would indicate that they are invalid
(RequiredField validator, InitialValue = "", CurrentValue = "", IsValid =
True). Any idea why this is happening? It's driving me crazy...

Thanks,
Jeremy
 
Jeremy,

As per the documentation for the IsValid property, call the Page.Validate
method before using the property.

HTH,
Nicole
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top