Re: RequiredFieldValidator doesn't show error message and missing __postback function
From what you have described, the system doesn't think Client-side
validation needs to be setup for the submit button.
There are two possibilities
1. The button has CausesValidation=false. This omits the call to
Page_ClientValidate() and thus prevents client-side validation.
2. The page thinks the browser isn't IE. The ClientTarget on the page may
not be blank. It may reflect something like "Downlevel". Client-side
validation requires detection of IE.
--- Peter Blum
Creator of "Professional Validation And More" at
"John Sutter" <email@example.com> wrote in message
> I have a webpage which has a few asp:textbox's and an asp:button. I also
> have a few RequiredFieldValidators for these text boxes. When I click on
> the button while the textboxes are empty, I don't see any error messages
> from the validators. I noticed the __doPostBack function is also missing
> along with the two args in the source.
> I thought a button adds this function. When I changed a textbox to
> autopostback, the function appeared. But I don't want to autopostback and
> the error messages still don't show up.
> I have display set to dynamic, enabled is true and enableclientscript is
> Any clues?
|All times are GMT. The time now is 03:42 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.