how to prevent form post back

Last post 08-31-2010, 9:54 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  08-30-2010, 8:20 PM 63738

    how to prevent form post back

    Hi,
     
    I want the file uploader work pretty much similar to the "form-singlefile.asp" file. Except, I have a few other fields and the uploader (with my other fields) in an html form.
     
    I got the uploader working, but it automatically post the form to the server. what I need it, let the form stay there display the uploaded file under the "upload"  button. I have another button to handle the whole form post back.
     
    does anyone know how to do it?
     
    By the way, the keepstate solution doesn't work for me, I don't want the form post back at all after the file uploaded.
     
    Thanks a lot in advance.
     
    Alan
     
     
  •  08-31-2010, 9:54 AM 63759 in reply to 63738

    Re: how to prevent form post back

    Dear alanshen209,
     
     
    <%
        Dim uploader
        Set uploader=new AspUploader
        uploader.MaxSizeKB=10240
        uploader.Name="myuploader"
        uploader.InsertText="Upload File (Max 10M)"
        uploader.MultipleFilesUpload=true    
        uploader.ManualStartUpload=true    
        %>
     
    Thanks for asking
     
View as RSS news feed in XML