Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: RES: Re: RES: Response.Redirect after downloading a file with ASPsmartUpload


Message #1 by =?iso-8859-1?Q?Fl=E1vio_Rodrigues_Maciel?= <flaviorm@p...> on Fri, 26 Jul 2002 15:23:42 -0300
Damn smartupload
:D

-----Mensagem original-----
De: JOH [mailto:jacob-o-hansen@p...]
Enviada em: sexta-feira, 26 de julho de 2002 19:09
Para: ASP components
Assunto: [asp_components] Re: RES: Response.Redirect after downloading a
file with ASPsmartUpload


Unfortunately...

<%
Sub downloadFile(fileN)

Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.DownloadFile("/v.1.1/80-Download/" & fileN)

End Sub
%>
<%
	downloadFile tmpURL
	Server.Transfer "default.asp"
%>

... this will not work either. The Server.Transfer works fine if I do not
use my routine downloadFile. However, then there is no functionality!

I think it has got somthing to do with the ASPsmartUpload component. It is
like I am not able to do anything after the file is uploaded. The wierd
part is that I am able to redirect after I have uploaded a file using the
same component.

I tried the script as well. This will not redirect either!

Kind regards Jacob.



> if you're running IIS on Windows2000, you probably have IIS 5.0 and you
can
use Server.Transfer instead of response.redirect. Server.transfer makes the
server transfer the client's request to the page specified in the
parameter.

You can also use a client script for redirection. Just write in the
response
the following code:
<script language=javascript>
location.href = "default.asp?pageId=<%=page%>";
</script>

-----Mensagem original-----
De: JOH [mailto:jacob-o-hansen@p...]
Enviada em: sexta-feira, 26 de julho de 2002 18:00
Para: ASP components
Assunto: [asp_components] Response.Redirect after downloading a file
with ASPsmartUpload


As the title says I cannot redirect after downloading a file using the
ASPsmartUpload component. I am trying something like this...

<%
...
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.DownloadFile("/80-Download/" & tmpFileName)
Response.Redirect "default.asp?pageID="	& page
%>

Where tmpFileName is the file name and page is just another variable set
before this piece of code.

If I remove the Response.Redirect line it will work, however I want to
redirect the page. This is because when the user has reached this point
the user has just entered a username and a password, and after downloading
with the ASPsmartUpload component this page will still be the current
page...

default.asp -> login.asp -> download.asp

I want to return to the original page (default.asp)

I would be greatfull if you have got a solution to this dilemma!

Kind regards Jacob.

%%email.unsub%%


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002


%%email.unsub%%


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

Message #2 by "JOH" <jacob-o-hansen@p...> on Fri, 26 Jul 2002 19:35:37
YES! Well thanks anyway!

Jacob.

> Damn smartupload
:D

-----Mensagem original-----
De: JOH [mailto:jacob-o-hansen@p...]
Enviada em: sexta-feira, 26 de julho de 2002 19:09
Para: ASP components
Assunto: [asp_components] Re: RES: Response.Redirect after downloading a
file with ASPsmartUpload


Unfortunately...

<%
Sub downloadFile(fileN)

Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.DownloadFile("/v.1.1/80-Download/" & fileN)

End Sub
%>
<%
	downloadFile tmpURL
	Server.Transfer "default.asp"
%>

... this will not work either. The Server.Transfer works fine if I do not
use my routine downloadFile. However, then there is no functionality!

I think it has got somthing to do with the ASPsmartUpload component. It is
like I am not able to do anything after the file is uploaded. The wierd
part is that I am able to redirect after I have uploaded a file using the
same component.

I tried the script as well. This will not redirect either!

Kind regards Jacob.



> if you're running IIS on Windows2000, you probably have IIS 5.0 and you
can
use Server.Transfer instead of response.redirect. Server.transfer makes the
server transfer the client's request to the page specified in the
parameter.

You can also use a client script for redirection. Just write in the
response
the following code:
<script language=javascript>
location.href = "default.asp?pageId=<%=page%>";
</script>

-----Mensagem original-----
De: JOH [mailto:jacob-o-hansen@p...]
Enviada em: sexta-feira, 26 de julho de 2002 18:00
Para: ASP components
Assunto: [asp_components] Response.Redirect after downloading a file
with ASPsmartUpload


As the title says I cannot redirect after downloading a file using the
ASPsmartUpload component. I am trying something like this...

<%
...
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.DownloadFile("/80-Download/" & tmpFileName)
Response.Redirect "default.asp?pageID="	& page
%>

Where tmpFileName is the file name and page is just another variable set
before this piece of code.

If I remove the Response.Redirect line it will work, however I want to
redirect the page. This is because when the user has reached this point
the user has just entered a username and a password, and after downloading
with the ASPsmartUpload component this page will still be the current
page...

default.asp -> login.asp -> download.asp

I want to return to the original page (default.asp)

I would be greatfull if you have got a solution to this dilemma!

Kind regards Jacob.

%%email.unsub%%


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002


%%email.unsub%%


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002


  Return to Index