I could do that, however I still need to do validation on the page with 2
buttons. For example, I want to validate some validation conbtrols when
Button1 is pressed and a different set of validators when Button2 is pressed.
And all validators are on the same page.
Any ideas?
"Naeem Sarfraz" wrote:
This is what you should do. Set the "causesvalidation" property for the
asp:button to false. This is will prevent any of the validators from firing.
<asp:button runat="server" id="btnSubmitNoValidation"
causesvalidation="False" .... />
"RichieRich" wrote:
Does anyone know if it is possible? If I have two buttons on a page and in
my OnServerValidate function can I figure out which button was pressed.
I need to know because I have validators on the page that I do not want to
enable when a specific button is pressed.
Thanks in advance.