Solved

ASP.NET Validate DropDownList in a user control

Posted on 2008-10-09
4
427 Views
Last Modified: 2013-12-17
I have a web form that has a user control containing a dropDownList of the fifty states.  I am trying to apply a RequiredFieldValidator to this control but it keeps erroring out.  Simply put, I need to figure out how to validate a control within a user control, on the client side if this is possible.

TIA,

N
0
Comment
Question by:stretch73
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:prairiedog
ID: 22679274
You should do the validation in the user control, not in the page that uses the user control.
0
 

Author Comment

by:stretch73
ID: 22679721
pd,

Would you please expand on that?  
0
 
LVL 22

Accepted Solution

by:
prairiedog earned 500 total points
ID: 22679761
You should add the RequiredFieldValidator on the user control form. Does it make sense?
0
 

Author Closing Comment

by:stretch73
ID: 31504681
Wow, that was way easier than the other suggestions I had found.  

Thanks much prairiedog, have a great rest of your week.

N
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

792 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