Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting form with showing Required Validators
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Titre:
Starting form with showing Required Validators
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01327683
Message ID:
01327683
Vues:
67
Hi everybody,

We would like to show the required validators messages when the form first starts. My colleague implemented the following code:
function showReqFld(){
    var pBlk=parent.document.getElementById('spnStat').innerHTML;
    if(!pBlk||pBlk.match("Edit")) {
        for (i=0;i<Page_Validators.length;i++) {
            if(Page_Validators[i].innerHTML.match('Required'))Page_Validators[i].style.display="block";
        }    
    }
    parent.document.getElementById('loading').style.display="none";
}
which works well if the forms don't use UserControls. However, I wanted to simplify maintenance and replaced several controls with UserControls. Now this logic no longer works. Do you know what should I do to be able to fix the problem?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform