Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with Client side validation in Accordion (AJAX toolkit) Control

Problem with Client side validation in Accordion (AJAX toolkit) Control

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-nethelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Faisal Khatri
    wrote on last edited by
    #1

    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,

    A 1 Reply Last reply
    0
    • F Faisal Khatri

      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,

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Faisal Khatri wrote:

      I am trying to use custom validator but it doesnt work.

      Are you getting any particular error ?

      F 1 Reply Last reply
      0
      • A Abhijit Jana

        Faisal Khatri wrote:

        I am trying to use custom validator but it doesnt work.

        Are you getting any particular error ?

        F Offline
        F Offline
        Faisal Khatri
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups