S
Steven Thomas
I am working on a ASP.NET application using VB.NET.
I have a function that creates a snapshot file on a separate server
and passes a path back to the webpage. Now I want to display the
snapshot. If I cut and paste the path into the browser it opens
snapshot viewer. Exactly what I want. However, if I
response.redirect to the path, I get a error that the file can not be
found. If I response.redirect to "file:"+path It opens the snapshot
in the browser, however you loose most of the controls in shapshot
viewer. You can no longer print or email from the file menu.
Here is the path that gets generated:
\\WPGA030ADOR1\GPRptSrv\TSWPRDSQL\RptOutput\11-18-04
103139_40904a53_29dc_432f_8f33_322e196ef503.snp
When the redirect happens it shows up in the browser as
http://WPGA030ADOR1/GPRptSrv/TSWPRD...4604_137641bd_492c_41bf_901c_20f99219789a.snp
And
file:\\WPGA030ADOR1\GPRptSrv\TSWPRDSQL\RptOutput\11-18-04
103139_40904a53_29dc_432f_8f33_322e196ef503.snp
When I cut and paste IE shows a folder icon in the address bar. When
the redirect happens it shows an IE/HTML page icon, when the second
redirect happens it shows a snapshot file icon?
Any ideas on how to redirect to the file as if you where cutting and
pasting??
I have a function that creates a snapshot file on a separate server
and passes a path back to the webpage. Now I want to display the
snapshot. If I cut and paste the path into the browser it opens
snapshot viewer. Exactly what I want. However, if I
response.redirect to the path, I get a error that the file can not be
found. If I response.redirect to "file:"+path It opens the snapshot
in the browser, however you loose most of the controls in shapshot
viewer. You can no longer print or email from the file menu.
Here is the path that gets generated:
\\WPGA030ADOR1\GPRptSrv\TSWPRDSQL\RptOutput\11-18-04
103139_40904a53_29dc_432f_8f33_322e196ef503.snp
When the redirect happens it shows up in the browser as
http://WPGA030ADOR1/GPRptSrv/TSWPRD...4604_137641bd_492c_41bf_901c_20f99219789a.snp
And
file:\\WPGA030ADOR1\GPRptSrv\TSWPRDSQL\RptOutput\11-18-04
103139_40904a53_29dc_432f_8f33_322e196ef503.snp
When I cut and paste IE shows a folder icon in the address bar. When
the redirect happens it shows an IE/HTML page icon, when the second
redirect happens it shows a snapshot file icon?
Any ideas on how to redirect to the file as if you where cutting and
pasting??