Problem with Client side validation in Accordion (AJAX toolkit) Control
-
Hi I have an Accordion control in my page and in that Accordion control i have around 22 AccordionPanel. In each panel i have several ASP.NEt controls like radiobutton list, textboxes and so on. At the end of the page I have a submit button, On submit i would like to check that the radiobuttonlist in each of the accordionpanel is selected. If not it should display a message. I would like to do a client side validation. I am trying to use custom validator but it doesnt work. Please guide me how to do it? Thanks,
-
Hi I have an Accordion control in my page and in that Accordion control i have around 22 AccordionPanel. In each panel i have several ASP.NEt controls like radiobutton list, textboxes and so on. At the end of the page I have a submit button, On submit i would like to check that the radiobuttonlist in each of the accordionpanel is selected. If not it should display a message. I would like to do a client side validation. I am trying to use custom validator but it doesnt work. Please guide me how to do it? Thanks,
Faisal Khatri wrote:
I am trying to use custom validator but it doesnt work.
Are you getting any particular error ?
-
Faisal Khatri wrote:
I am trying to use custom validator but it doesnt work.
Are you getting any particular error ?
well i almost solved it but now having another issue. if (Page_ClientValidate() ==false) { //alert('Pottey'); alert(Page_ClientValidate('First')); if (Page_ClientValidate('First')==true) { accordianControl.set_SelectedIndex(0); alert('Student Household Size is not verified.'); return false; } if (Page_ClientValidate('Second') == false) { accordianControl.set_SelectedIndex(1); alert('Student Number of College is not verified.'); return false; } so on Page_ClientValidate('First') it always gives true. By the way First and Second are my validationgroup of ASP.NET radiolist control Any help?