Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Multiple Server controls each with validation controls


Message #1 by agamble@t... on Wed, 31 Jul 2002 00:31:41
try using different Forms ?

-----Original Message-----
From: agamble@t... [mailto:agamble@t...]
Sent: 31 July 2002 00:32
To: ASPX_Professional
Subject: [aspx_professional] Multiple Server controls each with
validation controls



I have got a logon control and a voting control on one web form. Both of
these controls have their own validation controls associated with them,
and on their own they both work fine.

However, when putting them both on the same web form the validation events
are fired for the other control. For example when clicking on the vote
button for the poll, the validation events are fired for the logon control
to make sure a username and password are supplied.

By setting the causesvalidation property to false on the vote control you
can get it to stop, but the vote control has legitimate validation code to
make sure an option is selected.

How is it possible to have both of these server controls to exist on the
same page (form) but only getting them to fire the validation events for
the control that is being submitted.

Thanks



  Return to Index