So what you basically wish to do is submit if one of the 6 textboxes is filled? If that's the case then using an self made validation is the best solution.
do the following on button.click
if (!String.IsNullOrEmpty(Tex
{
//Do something
}
Else
{
Errorlabel.visible = true;// The error label should be on the page with forcolor red and the error tekst.
Errorlabel.databind();
}
Main Topics
Browse All Topics





by: johnaryanPosted on 2008-10-31 at 03:48:35ID: 22848850
There should be an extended property on all the TextBoxes that allows you to not fire the Validator. I think it's the CausesValidation property.