Two Buttons

  •  05-12-2010, 7:43 AM

    Two Buttons

    I cannot use two uploader in the same page.
     I want a button to raise images and other one to rise pdf.
    I have this code:
     

    <form id="form1" method="POST">
                
      <label>Codigo
      <input type="text" name="txt_codigo" id="txt_codigo" />
      </label>
     
      <p>&nbsp;</p>
      <label>Información
      <input type="text" name="txt_info" id="txt_info"  />
      </label>
     
      <p>&nbsp;</p>
       <%
        Dim uploader
        Set uploader=new AspUploader
        uploader.MaxSizeKB=10240
        uploader.Name="myuploader"
        uploader.InsertText="Imagen"
        'uploader.MultipleFilesUpload=true
        uploader.AllowedFileExtensions="*.jpg,*.png,*.gif"    
        'uploader.SaveDirectory="img"
        uploader.ManualStartUpload=true
     %>
     <%=uploader.GetString() %>
       

    <p>&nbsp;</p>

       <%
        Dim uploader
        Set uploader=new AspUploader
        uploader.MaxSizeKB=10240
        uploader.Name="myuploader2"
        uploader.InsertText="Archivos"
        'uploader.MultipleFilesUpload=true
        uploader.AllowedFileExtensions="*.doc,*.pdf"    
        'uploader.SaveDirectory="img"    
        uploader.ManualStartUpload=true
     %>
     <%=uploader.GetString() %>
      

    <p>&nbsp;</p>

      <button id="submitbutton" onClick="doStart();return false">Start Uploading Files</button>     
    </form>

View Complete Thread