Forums

This topic is locked

Pure asp upload flash 3 cannot redirect

Posted 26 Oct 2007 19:26:00
1
has voted
26 Oct 2007 19:26:00 Chris hales posted:
I m using pure asp upload Flash ver 3.0.9 and using following code.

-------------------------------------------------------------------------
<%
If (CStr(UploadFormRequest("MM_insert") = "FlashUpload" Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd

Set MM_editCmd = Server.CreateObject ("ADODB.Command"
MM_editCmd.ActiveConnection = MM_es_STRING
MM_editCmd.CommandText = "INSERT INTO cust (name, address) VALUES (?, ?)"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 50, UploadFormRequest("Filedata") ' adVarWChar
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 50, UploadFormRequest("address") ' adVarWChar
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

End If
End If
%>
----------------------------------------------------------------------

now this is insert behaviour. This works fine but when i put line
response.Redirect("me2.asp"
after
MM_editCmd.ActiveConnection.Close

It doesn't upload and gives me FLASH upload component message(error )
=====
Following files failed:
ModCache.bas (HTTP Error:404)
====

PLease help as i m badly in need of redirecting the page after completion.

Thanks in advance




Reply to this topic