Solved

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

Posted on 2006-10-24
2
191 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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