-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: vishnuvr
Message 1 in Discussion

Hi guys,
i have two list box(lstRight,lstLeft) in between these two i have
 two buttons(Moveright,Moveleft) and i added one requiredfieldvalidator like      
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" 
ErrorMessage="Select atleast one customer" 
ControlToValidate="lstLeft"></asp:RequiredFieldValidator>    what i want here is if no 
items are there in the left list box then  we have to show this message... my problem 
over here is even though item exists in the list box this RequiredFieldValidator error 
message will appear... but if i select any item in the left list box error will 
disappear...   is the validator what iam using for this is wrong? even i tried with 
customvalidator like this <asp:customvalidator id="custSelectedCustomer" 
runat="server" ErrorMessage="Select atleast one customer" 
onServerValidate="CheckCustomer" ControlToValidate="lstLeft" 
EnableClientScript="False"></asp:customvalidator>   onServerValidate method will only 
fire if i try to move item from left to right not in other case...   can any body help 
me out.. where exactly iam gng wrong   Thanks in advance Vishnu

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to