Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > validation on items of radiobuttonlist in jsp

Reply
Thread Tools

validation on items of radiobuttonlist in jsp

 
 
rishi pariahr via .NET 247
Guest
Posts: n/a
 
      04-05-2005
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>
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-05-2005
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>
>




 
Reply With Quote
 
 
 
 
Mona
Guest
Posts: n/a
 
      04-05-2005
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Attributes to items in a RadioButtonList raz ASP .Net 0 08-24-2006 05:38 PM
Radiobuttonlist, add new items problem lb ASP .Net 1 06-14-2006 12:27 AM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
ClientID of Items in RadioButtonList? haroldsphsu@gmail.com ASP .Net 1 01-24-2006 03:06 AM
Adding Attributes to RadioButtonList Items? Mike S ASP .Net 1 07-15-2003 05:36 AM



Advertisments