Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting form with showing Required Validators
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Client-side development
Title:
Starting form with showing Required Validators
Environment versions
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01327683
Message ID:
01327683
Views:
66
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
Reply
Map
View

Click here to load this message in the networking platform