473,386 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

validation on items of radiobuttonlist in jsp

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>
Nov 19 '05 #1
2 1514
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>


Nov 19 '05 #2
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" <an*******@dotnet247.com> wrote in message news:ex**************@TK2MSFTNGP14.phx.gbl...
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>

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike S | last post by:
I am trying to use a RadioButtonList bound to a custom datasource to acomplish some user functionality. I want to add various onmouseover/onmouseout/onblur/onfocus events to each individual...
1
by: Mark Fox | last post by:
Hello, I have a repeater and in each itemtemplate I have a radiobuttonlist. I am attempting to figure out how on postback I could iterate through the rows displayed by the repeater and for...
0
by: Niks | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
3
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary...
4
by: News | last post by:
Hi, I am new to asp.net and unfortunately, have to learn as I go. Here is a "problem". I have got two radio buttons No and Yes and text box that has to be fiiled in only if Yes is clicked. How...
3
by: Prince | last post by:
I have some <RequiredFieldValidator> on my page and everything works fine except that there are lots of white spaces between the web server controls that are being validated. I've set the Display...
1
by: Nathan Sokalski | last post by:
I have a set of RadioButtons in my form. I want to make sure that the user selects one of them, and therefore am initially having none of them selected. However, I want an error message to be...
0
by: cnickl | last post by:
VS 2003 / .NET 1.1 / C# I’m playing with some validation controls. I have noticed that I can validate a dropdownlist with a custom validator using the following format: <asp:customvalidator...
1
by: lb | last post by:
Hello, I am trying to use a radiobuttonlist with the new multiview control. Am having trouble understanding how to build the radiobuttonlsit just one time, and not many times. In my first...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.