CustomValidation Control

G

Guest

I have a drop down list in my asp page. when I selectg an irem and click on
a button it appears in the Grid view. But when I again come to the same page
and click on the same item from Drop down list it and click on button it
again add the same item onin the Grid view. So I need some validatiobn that
if this item appears in Grid view Don't add in the Grid view. I can use
customValidation contro. But I don't know how to use it.
 
G

Guest

Hi bobby,

you should design your page more user friendly. Your drop down list
shouldn't contain items already added to grid view. You can easyly achieve
this in datasource for your drop down list. If content for your drop down
list is defined directly in page you should use handler of grid view's
RowDataBound event to remove items from drop down list.

This is easyer to implement then checking grid view content in custom
validator.

Best regards,
Ladislav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top