validation
-
im having 4 textboxs in repeater if all the text boxes are empty validation is disabled and if the 1st text box is empty and any of other text boxs are filled then error msg should display... how can i do that...
It doesn’t seem to be possible with the available validation control we are having in ASP.NET. You can do this as following. Client Side: On the form submit/ or submit button click call a javascript function and check the value of each textboxes.
<form onsubmit="return Validate();" method="post">
And check the values of all the textboxex, if the validation passes then return true so that form can post otherwise show an error message. Server Side: Loop through the repeater and find each textbox control and check the validation.
WWW, WCF, WWF, WPF, WFC .... WTF
-
im having 4 textboxs in repeater if all the text boxes are empty validation is disabled and if the 1st text box is empty and any of other text boxs are filled then error msg should display... how can i do that...