One: Verification of the authentication control of Enable = True in all pages:
IF (TypeOf (Page_ClientValidate) == 'Function')
Page_clientValidate (); // validate
IF (page_isvalid == true) // validate passed
{
// Code
}
Two: When you press a button, you have a selected verification of some verification controls:
1. Designed all the verification controls and set all the enabled enabled to false
2. Write a single button calling:
Function button1val ()
{
Var rv = true;
VAR VAL;
Val = document.all.rfv1;
Val.issalid = val.evaluationFunction (VAL);
ValidatorUpdatedInsplay (VAL);
IF (Val.issalid == False)
RV = FALSE;
Val = Document.all.RFV2;
Val.issalid = val.evaluationFunction (VAL);
ValidatorUpdatedInsplay (VAL);
IF (Val.issalid == False)
RV = FALSE;
Return RV;
}
3. Add: button1.attributes.add ("onclick1val ());")); ")