ASP Uploader Class Reference

Uploader.ButtonOnClickScript Property

JavaScript code that be executed when the browse button be clicked.


Example Code

  1. <%Language="VBScript" %>  
  2. <!-- #include file="aspuploader/include_aspuploader.asp" -->  
  3. <html>   
  4. <body>   
  5.         <form id="form1" method="POST">   
  6.             <%
  7.                 Dim uploader   
  8.                 Set uploader=new AspUploader   
  9.                 uploader.Name="myuploader"
  10.                 uploader.ButtonOnClickScript="myalert()"
  11.                 uploader.Render()  
  12.             ?>                  
  13.             <script>   
  14.             function myalert()   
  15.             {   
  16.                 alert("Hello World");   
  17.             }   
  18.             </script>   
  19.         </form>   
  20. </body>   
  21. </html>