Re: problem with refresh

  •  02-01-2014, 3:02 AM

    Re: problem with refresh

    Can you try the following code?

     

    <%@ Language="VBScript" %>

    <!-- #include file="aspuploader/include_aspuploader.asp" -->

    <html>

    <head>

          <title></title>

          <script type="text/javascript">

          function CuteWebUI_AjaxUploader_OnPostback() {

                //submit the form after the file have been uploaded:

                document.forms[0].submit();

          }

          </script>

    </head>

    <body>            

                      <!-- do not need enctype="multipart/form-data" -->

                      <form id="form1" method="POST">

                      <%

                      Dim uploader

                      Set uploader=new AspUploader

                      uploader.Name="myuploader"

                      uploader.InsertText="Upload File (Max 10M)"

                      uploader.MultipleFilesUpload=true

                      %>

                      <%=uploader.GetString() %>

                      </form>

    <%

    If Request.Form("myuploader")&""<>"" Then


          Dim list,i

          list=Split(Request.Form("myuploader"),"/")


          For i=0 to Ubound(list)

                if i>0 then

                      Response.Write("<hr/>")

                end if

                Dim mvcfile

                Set mvcfile=uploader.GetUploadedFile(list(i))


                Response.Write("<div style='font-family:Fixedsys'>")

                Response.Write("Uploaded File:")

                Response.Write("<br/>FileName : ")

                Response.Write(mvcfile.FileName)

                Response.Write("<br/>FileSize : ")

                Response.Write(mvcfile.FileSize)

                Response.Write("<br/>FilePath : ")

                Response.Write(mvcfile.FilePath)

                Response.Write("</div>")

          Next

    End If


    %>

    </body>

    </html>

     


    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

View Complete Thread