Hi,
I have a menu which consists of 2 items
1. update
2. cancel
This menu sits above a series of forms which need to be filled in, so I have put validation controls on each of the textboxes dropdownlist etc..
The menu wont move the page forward if any of the fields are empty, which is good. My problem is if the user clicks on cancel the page will not redirect (controlled in c# code on "menu_itemclick") this is because the menu control is set to Causesvalidation = true.
Now this is a catch 22, as I need validation on to ensure you cannot update the forms without all the data, but at the same time I need validation off so I can redirect the page if they cancel.
I was looking for a causes validation option on the item in the builder, but as I though it didnt exist as its part of the overall object.
Has anyone got a solution to this very simple requirement?
Thanks,
Jon
I have a menu which consists of 2 items
1. update
2. cancel
This menu sits above a series of forms which need to be filled in, so I have put validation controls on each of the textboxes dropdownlist etc..
The menu wont move the page forward if any of the fields are empty, which is good. My problem is if the user clicks on cancel the page will not redirect (controlled in c# code on "menu_itemclick") this is because the menu control is set to Causesvalidation = true.
Now this is a catch 22, as I need validation on to ensure you cannot update the forms without all the data, but at the same time I need validation off so I can redirect the page if they cancel.
I was looking for a causes validation option on the item in the builder, but as I though it didnt exist as its part of the overall object.
Has anyone got a solution to this very simple requirement?
Thanks,
Jon