Home > Archive > ASP .NET > October 2004 > Probs in Reqfield validator
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Probs in Reqfield validator
|
|
| Raghu Raman 2004-10-29, 3:58 pm |
|
Hi,
I have created an aspx page with a textbox and a save button & a cancel
button.I mapped that text box to required field validator.when i press
the submit button it works nice & telling the error message if the
textbox is empty.
But the thing is , if i press the cancel button , also the req.field
validator fires.
I need the validator to be fired only , if i press the submit button.if
i press the cancel button , it should not get fired.Could u pls tell me
how.
With thanks
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
| |
| Saravana 2004-10-29, 3:58 pm |
| Set "false" to CausesValidation property for that submit button. In that
case, validation wont happen if you press submit button. For more detail
about CausesValidation,
http://msdn.microsoft.com/library/d...dationtopic.asp
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Raghu Raman" <raghuraman_ace@rediffmail.com> wrote in message
news:#9SoVXbvEHA.3728@TK2MSFTNGP12.phx.gbl...
>
> Hi,
>
> I have created an aspx page with a textbox and a save button & a cancel
> button.I mapped that text box to required field validator.when i press
> the submit button it works nice & telling the error message if the
> textbox is empty.
>
>
> But the thing is , if i press the cancel button , also the req.field
> validator fires.
>
> I need the validator to be fired only , if i press the submit button.if
> i press the cancel button , it should not get fired.Could u pls tell me
> how.
>
> With thanks
> Raghu
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
| |
| Raghu Raman 2004-10-30, 3:56 am |
| Hi saravana,
Thanks yar.You people continuesly responding me .Thanks for that.
Raghu(a drop in the ocean)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
|
|
|
|