I have a whole sort of validation controls on my page and it works fine for a submit button I have on the page. I was going to see how I can disable any validation for a cancel button, but apparently I didn't have to... I have an asp.net control button, the name of which is btnCancel, with the text Cancel and when you press it, it doesn't do any validation.
I mean it's smart, but is it hardwired somwhere that a control named Cancel shouldn't do any validation? is it documented anywhere, and what if I want to do some validation for a cancel button?