ok let me be more spacific on my issue.
There is a web form in my project containing couple of textboxes , button and dropdownlist.
Textboxes on page are being validated by Required Field Validators.
I have server code for button's click event and dropdown's selectedindexchange event. Now if i click button then Required Fiels Validator controls are working fine if i leave textbox(es) blank.
And if i fill all required textbox(es) then buttons click event is also being fired.
O.K. This is just perfect as it is supposed to be.
But This scenario is on my one server machine. Its working fine on that machine.
Now on another server machine where i have same project and same page,here what happening is that all validator controls are working just fine, they give error message if i leave any textbox blank and don't if i fill all textboxes. Up to here everything is OK.
But problem on this second machine is that, though i fill all textboxes and validator controls are not generating any error message, Button's click event is not being fired. It just do nothing if i click button. On this second machin's project if i set EnableClientScript property of validator controls to false then here alse things are working fine. But i don't wanna keep EnableClientScript property of validator to false.
Now i think this is enough clear to any one read this.
Please try on this issu
Bye.
Quote:
quote:Originally posted by dparsons
Without seeing any code I am not entirely sure what is going on. What it sounds like is that your validation control is stopping the execution of the page (as it should if the validation equates to false). You can override this functionality by adding the CausesValidation property to your button control and set its value to false.
<asp:Button id="btnFoo" runat="server" CausesValidation="false" />
hth.
-Doug
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
|