C
Craig
I recently encountered an odd problem that has me rather baffled.
I have a number of web applications on a staging server that have suddenly
quit posting back when the user clicks a submit button. The exact same code
works correctly on the production servers.
In my attempts to trace this problem, I've simplified it to this. Any time
that I add a required field validator control (and perhaps other validation
controls - I've tested only the required field validator) to a form, the
form will no longer submit when the user clicks the submit button. I
created a very simple web form to test my theory. The form contains one
lable, one textbox, one button, and one required field validator whose
control to validate property I set to the textbox. The code behind the
button simply sets the label's text property to the textbox's text property
and clears the textbox only if the page successfully validates.
If I leave the textbox empty and click the button, the required field
validator does its job; however, if I enter text into the textbox and click
the submit button, no events fire - not even the page_load event. If I
remove the required field validator, everything works fine. The textbox text
appears in the label, and the textbox clears.
I've tried replacing the staging server's aspnet_client folder with that
from one of the production servers, but doing so made no difference.
Additionallyu, the NTFS permissions on the staging server match those on the
production servers. I'm stumped, and I have no idea what else to check.
I would sincerely apprectiate any assistance someone could offer.
I have a number of web applications on a staging server that have suddenly
quit posting back when the user clicks a submit button. The exact same code
works correctly on the production servers.
In my attempts to trace this problem, I've simplified it to this. Any time
that I add a required field validator control (and perhaps other validation
controls - I've tested only the required field validator) to a form, the
form will no longer submit when the user clicks the submit button. I
created a very simple web form to test my theory. The form contains one
lable, one textbox, one button, and one required field validator whose
control to validate property I set to the textbox. The code behind the
button simply sets the label's text property to the textbox's text property
and clears the textbox only if the page successfully validates.
If I leave the textbox empty and click the button, the required field
validator does its job; however, if I enter text into the textbox and click
the submit button, no events fire - not even the page_load event. If I
remove the required field validator, everything works fine. The textbox text
appears in the label, and the textbox clears.
I've tried replacing the staging server's aspnet_client folder with that
from one of the production servers, but doing so made no difference.
Additionallyu, the NTFS permissions on the staging server match those on the
production servers. I'm stumped, and I have no idea what else to check.
I would sincerely apprectiate any assistance someone could offer.