473,782 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>iAzUQYcRx0G 8sLBn8rhVjg==</Id>
Nov 19 '05 #1
2 1533
You can use a <asp:RequiredFi eldValidator> 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:CustomVali dator> 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>iAzUQYcRx0G 8sLBn8rhVjg==</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*******@dotn et247.com> wrote in message news:ex******** ******@TK2MSFTN GP14.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>iAzUQYcRx0G 8sLBn8rhVjg==</Id>

Nov 19 '05 #3

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

Similar topics

2
8530
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 ListItem housed by the RadioButtonList; however, the rbl.Items.Attributes.Add( eventName, callFunction ) model does not work for this--I can only add attributes to the rbl object itself: Is there a built-in way to do this that I am missing (without...
1
9806
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 each row grab the selected value of the radio button list. When is the Repeater.Items collection populated? I first attempted to access the Repeater.Items collection from the Command event of a normal linkbutton on the page, but it was empty. Is...
0
1557
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 in the bulleted list on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One for Submit, Reset and Exit. If submit is pressed page should be validated and submit (insert into
3
2604
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 in the bulleted list on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One for Submit, Reset and Exit. If submit is pressed page should be validated and submit (insert into
4
1432
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 can I validate this? Here is a code: <asp:radiobuttonlist RepeatDirection=Horizontal RepeatLayout=Table
3
3368
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 properties for all the controls to "Dynamic" and still I can't get rid of the white spaces between controls. It's as if there are bunch of <br> tags separating the controls. For example,the "HTML" look similar to this.
1
1260
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 displayed if they attempt to submit the form without selecting one of them the same way an error message would be displayed by a RequiredFieldValidator or any of the other validation controls. However, because the RadioButtons are separate controls, I...
0
841
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 id="valPayment" Runat="server" Display="Dynamic" ControlToValidate="XXX" EnableClientScript="False"><img src="Error.jpg"></asp:customvalidator> And than doing some custom code in the ‘valPayment_ServerValidate’ function.
1
1397
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 view, I select from a list of items, then select "next". Of course, this causes a postback, and displays the next view. On this second view, I want to build a radiobuttonlist based on the
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.