I'm having an issue with a standard ASP.NET page that has a TextBox and a RequiredFieldValidator. The steps to reproduce are quite simple:
- Place a TextBox on a page
- Place a RequiredFieldValidator on the page
- Point the RequiredFieldValidator at the TextBox
- Run the app
- Tab away from the TextBox the RequiredFieldValidator does not show
- Enter text, then delete the text and THEN tab away, the RequiredFieldValidator does show
The RequiredFieldValidator works fine in both cases after a postback, however it seems the client-side code isn't firing until something is entered into the textbox (and then deleted).
Does anyone have a solution to this without hacking away at JavaScript myself?