validation on items of radiobuttonlist in jsp

Discussion in 'ASP .Net' started by rishi pariahr via .NET 247, Apr 5, 2005.

  1. how to make validation on items of radiobuttonlist for checked or not in jsp,when these items are populated from database.

    --------------------------------
    From: rishi pariahr

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>iAzUQYcRx0G8sLBn8rhVjg==</Id>
    rishi pariahr via .NET 247, Apr 5, 2005
    #1
    1. Advertising

  2. rishi pariahr via .NET 247

    Brock Allen Guest

    You can use a <asp:RequiredFieldValidator> to insure that there is a selected
    value. If this doesn't do exactly what you want there are other validation
    controls, including a <asp:CustomValidator> where you can implement your
    own custom validation logic (both client-side and server-side).

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > how to make validation on items of radiobuttonlist for checked or not
    > in jsp,when these items are populated from database.
    >
    > --------------------------------
    > From: rishi pariahr
    > -----------------------
    > Posted by a user from .NET 247 (http://www.dotnet247.com/)
    > <Id>iAzUQYcRx0G8sLBn8rhVjg==</Id>
    >
    Brock Allen, Apr 5, 2005
    #2
    1. Advertising

  3. rishi pariahr via .NET 247

    Mona Guest

    Hello Rishi,

    For the radiobuttonlist,you can iterate through all the conrols, and pass the ClientId property to a javascript function.
    You basically create the javascript in a string in the codebehind, and in this string, you keep adding the clientid of each radio button.
    Once that string is ready, you can add it to the page. The string you create will have the function, which does the validation
    the function contains all the radio buttons to check for.

    HTH

    Mona[Grapecity]

    "rishi pariahr via .NET 247" <> wrote in message news:...
    > how to make validation on items of radiobuttonlist for checked or not in jsp,when these items are populated from database.
    >
    > --------------------------------
    > From: rishi pariahr
    >
    > -----------------------
    > Posted by a user from .NET 247 (http://www.dotnet247.com/)
    >
    > <Id>iAzUQYcRx0G8sLBn8rhVjg==</Id>
    Mona, Apr 5, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike S
    Replies:
    1
    Views:
    1,066
    Mike S
    Jul 15, 2003
  2. Replies:
    1
    Views:
    597
    =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?=
    Jan 24, 2006
  3. Replies:
    0
    Views:
    4,332
  4. lb
    Replies:
    1
    Views:
    433
  5. raz
    Replies:
    0
    Views:
    358
Loading...

Share This Page