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

New Message on BDOTNET

-----------------------------------------------------------
From: Saravana
Message 4 in Discussion

Hi,   Here is my comments on your questions   I have checked and found that required 
field validator validates all the text box displayed in the datalist.    This is how 
validator will work inside a datagrid. This is by design   1. I am not able to invoke 
the custom validator when the text box is empty    This is also by desing. If the 
controltoValidate is empty no validator control will fire. For more details, refer 
this link. 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconregularexpressionvalidatorcontrol.asp
   2. I am not able to clear the content of the text box when I do not enter a  number 
in the text box, as  a result old values of text box return .   I will tell a 
workaround which will solve your problem.   Have a dummy textbox in your form with 
some value. Then assign your custom validator to that control. When the form is 
submitted you customvalidator control servervalidate event will fire. There you can 
loop through each datagrid item and do whatever check you want to do. I hope you 
understand this, otherwise postback.   -Saravana www.ExtremeExperts.com  

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

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