Support forums
in

Two Buttons

Last post 02-13-2014, 8:48 AM by earbash. 7 replies.
Sort Posts: Previous Next
  •  05-12-2010, 7:43 AM 60935

    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>

  •  05-12-2010, 4:24 PM 60960 in reply to 60935

    Re: Two Buttons

    Please change the second uploader code to:
     
      <%
        Dim uploader2
        Set uploader2=new AspUploader
        uploader2.MaxSizeKB=10240
        uploader2.Name="myuploader2"
        uploader2.InsertText="Archivos"
        'uploader2.MultipleFilesUpload=true
        uploader2.AllowedFileExtensions="*.doc,*.pdf"   
        'uploader2.SaveDirectory="img"   
        uploader2.ManualStartUpload=true
     %>
     <%=uploader2.GetString() %>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-13-2010, 8:29 AM 60988 in reply to 60960

    Re: Two Buttons

    it does not work
  •  05-13-2010, 8:42 AM 60989 in reply to 60988

    Re: Two Buttons

    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-09-2010, 1:08 AM 61632 in reply to 60935

    Re: Two Buttons

    Hi chema,
     
    For now asp version deso not support this feature.
     
    We will improve it in future version.
     
    Regards,
     
    ken
  •  02-12-2014, 12:00 PM 79915 in reply to 61632

    Re: Two Buttons

      

    Kenneth, I need this option to work. I see it has been a problem for many years. Has it been fixed yet?  and if so. Please tell me how it can be achieved.

    I would prefer to use standard buttons on a page which invoke javascript to call the uploader.

     

    Thanks

     

  •  02-13-2014, 7:57 AM 79922 in reply to 79915

    Re: Two Buttons

    Hi earbash,

     

    If you need to use two uploader button in the same page, I suggest you use one in a <iframe>. it does not support to use two uploader instances in the same page.

     

    Regards,

     

    Ken 

  •  02-13-2014, 8:48 AM 79925 in reply to 79922

    Re: Two Buttons

    Hi Ken

     

    I find this method hugely frustrating. It would be so much easier if the upload could be called from javascript!

    Can you please provide real world example of the <iframe> method?

    • Showing multiple  <iframes> on  web page
    • Allow upload of only one image file
    • display of image on page in a separate div on web page
    • display of uploading progressbar information in a separate div on web page
    • disable upload button to stop user trying to upload another image but allow upload via another iframe

    Thanks

     

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems