ASP.net Validators

Last post 05-18-2009, 2:38 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  05-13-2009, 2:03 PM 52129

    ASP.net Validators

    I am wanting to collect data from a user before they upload the file(s) to the desired destination.
     
    How can I only activate uploading with the control AFTER the data in the other controls are validated?
     
    e.g.,
    I would have to enter my name and email address before any files would be uploaded.  Would it be posslible to make the upload button unavailable only after i enter the required data?
  •  05-18-2009, 2:38 AM 52259 in reply to 52129

    Re: ASP.net Validators

    Hi,
     
    It could be done by script:
     
     
     
    1. <p>  
    2.     Click the following button to upload. Email :   
    3.     <input id="emailbox" type="text" />  
    4. </p>  
    5.     <script>  
    6. function CuteWebUI_AjaxUploader_OnBrowse()   
    7. {   
    8.     var emailbox=document.getElementById("emailbox");   
    9.     if(emailbox.value.length==0)   
    10.     {   
    11.         alert("please input your mail");   
    12.         emailbox.focus();   
    13.         return false;   
    14.     }   
    15. }   
    16. </script>  
    Regards,
    Terry
View as RSS news feed in XML