Hello .Net Experts,
I am building an aspx page. Inside it, I have a Send Mail form, with controls: name, email and message and a "Send Mail" button.
On another area of the page, I have another button, when clicking it, a dynamic image will change (It's ajax based).
Now I have added a "RequiredFieldV alidator" to the "Email TextField" , to make sure the email is entered by the user before he press on "Send Mail".
This is working amazingly, but the only problem is, if I don't want to send the email, instead, I would like to click the other button which change the image on the other side of the page, the image doesn't change, and I see the validator on the other side saying "Email Required!" .
I definitely understand that this is happening because I should place the email, but is it possible to make an area for the validation, where we can work normally outside it without validation?
Please suggest.
Best regards,
Wassim
I am building an aspx page. Inside it, I have a Send Mail form, with controls: name, email and message and a "Send Mail" button.
On another area of the page, I have another button, when clicking it, a dynamic image will change (It's ajax based).
Now I have added a "RequiredFieldV alidator" to the "Email TextField" , to make sure the email is entered by the user before he press on "Send Mail".
This is working amazingly, but the only problem is, if I don't want to send the email, instead, I would like to click the other button which change the image on the other side of the page, the image doesn't change, and I see the validator on the other side saying "Email Required!" .
I definitely understand that this is happening because I should place the email, but is it possible to make an area for the validation, where we can work normally outside it without validation?
Please suggest.
Best regards,
Wassim
Comment