I put a break in the server code and it doesn't break. I'm new to ASP and VS2005 so I'm probably missing something. NET 1.1 there was an issue with validation not firing with Fire Fox and some other browsers.
Is Valid = false; But everytime I run it, if I put anything in the textbox I'm validating, it passes.
After the validating event returns without being cancelled, meaning we have valid user input, then the validated event will be raised.
In this case, we simply clear any error messages in the error provider.
Text = "") End Sub Now consider the corresponding VB. If the end user clicks on a different control and Text1 contains an empty string, the Lost Focus event resets the background color to white, then the Validate event cancels the focus shift, and finally the Got Focus event changes the background color to yellow again. If this is the case, the converted code might fail or behave unexpectedly.
In such cases, you can force the controls in the support library to behave more closely to the original VB6 controls by setting the VB6Config.