Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Cancel Tab change using client-side script
posted

Is there a way to cancel the tab chage in the BeforeSelectedTabChange client-side event handler? I've looked through the documentation but can't sem to find it. I know that in the past (and for other controls) there were ways to cancel postbacks. This is basically what I am trying to do here.

I have the WebTab in a MS UpdatePanel. I have to enforce some validation on the first tab before the user can navigate to other tabs. I would like to handle this client-side to reduce the poastback delay time. If the data is not validated I want a JS alert box to display, then the tab change is basically ignored.