Solved

what would be the code if nothing is selected from the radiobuttonlist

Posted on 2006-10-24
2
190 Views
Last Modified: 2010-04-16
Hello everyone,

            I want to show a message like "You must select 1 item in order to process" from a radiobutton list, what would be the code for that.

For example,

What is the primary objective of this campaign?
0 Lead generation
0 Image Building
 
Next Page

But in order to go to next page, the client has to select atleast one item. If nothing is selected, then I would want to show them a message saying that :You must select at least 1 item in order to go to next question.

Thank you all in advance.
0
Comment
Question by:siddhuoops
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 17797678
Your simplest option would be to add a RequiredFieldValidator to your form and set its ControlToValidate property to your RadioButtonList.
0
 

Author Comment

by:siddhuoops
ID: 17797829
Thanks a lot.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vb.net dynamic formulas in runtime 11 74
Turn on intranet settings 1 55
how to read json value 2 48
System.Speech 2 26
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now