473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirect to a temporary file in my app folder (or subfolder)

Hello,

I've built a web application that ask the user for 3 values (textboxes) and
when the user press a button (command button) the server genereates a report
in a temporary html file

My App is in the folder c:\inetpub\wwwr oot\TestReport
My report is generated in c:\inetpub\wwwr oot\TestReport\ Tmp\Test.html

I need to set my Cookieless property to True (for something else), so in the
URL, there is a session ID that prevent me to redirect to my Temporary
report.

When I do Response.Redire ct("Tmp/Test.html") it does not work, but the same
thing works when I set Cookieless to false because there is not Session ID
in the URL.
..
I also had to enable Write for ASPNET in the rights of the Tmp folder to
allow my report to be written there.

Can someone help me ? I don't know how to show my temporary report in these
circumstances
--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.
Nov 17 '05 #1
4 2281
"Philippe Meunier" <pm******@chca. ca> wrote in message
news:eN******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

I've built a web application that ask the user for 3 values (textboxes) and when the user press a button (command button) the server genereates a report in a temporary html file

My App is in the folder c:\inetpub\wwwr oot\TestReport
My report is generated in c:\inetpub\wwwr oot\TestReport\ Tmp\Test.html

I need to set my Cookieless property to True (for something else), so in the URL, there is a session ID that prevent me to redirect to my Temporary
report.

When I do Response.Redire ct("Tmp/Test.html") it does not work, but the same thing works when I set Cookieless to false because there is not Session ID
in the URL.
.
I also had to enable Write for ASPNET in the rights of the Tmp folder to
allow my report to be written there.

Can someone help me ? I don't know how to show my temporary report in these circumstances


I've never used cookieless, but it sounds like you need to append the query
string from your current URL to your new URL, or at least the part which
contains the session id.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #2
Humm, I don't get exactly what you're saying

When I set Cookieless to true here's what happens :

I click on "Print Report"

The report is generated to its location.

When I do Response.Redire ct("Tmp/Test.html") Internet explorer tries to open
a page that goes like this :
http://localhost/TestReport/(v0fzrr5.../Tmp/Test.html

Which is actually not a valid URL because of the session ID, to make this
work my report would be at, but the redirect always include the Session ID :
http://localhost/TestReport/Tmp/Test.html

I don't know if it may be caused because this is not an ASPX page that is
generated but a HTML...

"John Saunders" <john.saunder s at surfcontrol.com > wrote in message
news:et******** ******@TK2MSFTN GP10.phx.gbl...
"Philippe Meunier" <pm******@chca. ca> wrote in message
news:eN******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

I've built a web application that ask the user for 3 values (textboxes) and
when the user press a button (command button) the server genereates a

report
in a temporary html file

My App is in the folder c:\inetpub\wwwr oot\TestReport
My report is generated in c:\inetpub\wwwr oot\TestReport\ Tmp\Test.html

I need to set my Cookieless property to True (for something else), so in

the
URL, there is a session ID that prevent me to redirect to my Temporary
report.

When I do Response.Redire ct("Tmp/Test.html") it does not work, but the

same
thing works when I set Cookieless to false because there is not Session ID in the URL.
.
I also had to enable Write for ASPNET in the rights of the Tmp folder to
allow my report to be written there.

Can someone help me ? I don't know how to show my temporary report in

these
circumstances


I've never used cookieless, but it sounds like you need to append the

query string from your current URL to your new URL, or at least the part which
contains the session id.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com

Nov 17 '05 #3
"Philippe Meunier" <pm******@chca. ca> wrote in message
news:eP******** ******@TK2MSFTN GP11.phx.gbl...
Humm, I don't get exactly what you're saying

When I set Cookieless to true here's what happens :

I click on "Print Report"

The report is generated to its location.

When I do Response.Redire ct("Tmp/Test.html") Internet explorer tries to open a page that goes like this :
http://localhost/TestReport/(v0fzrr5.../Tmp/Test.html

Which is actually not a valid URL because of the session ID, to make this
work my report would be at, but the redirect always include the Session ID : http://localhost/TestReport/Tmp/Test.html

I don't know if it may be caused because this is not an ASPX page that is
generated but a HTML...


I forget - did you say that you've configured IIS to allow ASP.NET to
process .html files? If not, then the problem is IIS not understanding the
session ID.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #4
"Philippe Meunier" <pm******@chca. ca> wrote in message
news:eP******** ******@TK2MSFTN GP11.phx.gbl...
Humm, I don't get exactly what you're saying

When I set Cookieless to true here's what happens :

I click on "Print Report"

The report is generated to its location.

When I do Response.Redire ct("Tmp/Test.html") Internet explorer tries to open a page that goes like this :
http://localhost/TestReport/(v0fzrr5.../Tmp/Test.html

Which is actually not a valid URL because of the session ID, to make this
work my report would be at, but the redirect always include the Session ID : http://localhost/TestReport/Tmp/Test.html

I don't know if it may be caused because this is not an ASPX page that is
generated but a HTML...


I forget - did you say that you've configured IIS to allow ASP.NET to
process .html files? If not, then the problem is IIS not understanding the
session ID.
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6696
by: Jason Charalambides | last post by:
I set a program to automatically load values from a temporary file. However, there is a chance that the specific temporary file "C:\Temp\TU.tmp" may not exist at all. In that case I want that specific routine to be skipped. I guess this is a simple If (that file exists) Open "C:\Temp\TU.tmp" For Input As #3 etc....... Else GoTo
4
6799
by: Frank Millman | last post by:
Hi all I need to generate potentially large reports from a database, and I want to offer the option of print preview before actually printing (using wxPython). I figure that the best way to achieve this is to write the report to a temporary file, or more likely to a temporary directory with a separate file for each page. I can use that for previewing and for printing, and then delete the file/directory. There seems to be a few ways to...
6
1854
by: Codemonkey | last post by:
Hi, I have a few questions about best practices when it comes to the management of temporary files. Any thoughts anyone can give would be much appreciated. Basically, I'm writing a document storage app - a Windows service acts as the file sotrage server and remote windows forms clients send files to the server to be stored. The temporary files become involved when a client wishes to view a file that is stored on the server (the server...
2
1308
by: Lyners | last post by:
I am creating a temporary file using GetTempFileName to populate it with Excel information. Everything is working correctly except the temporary file name extension is .tmp. How can I change it to an .xls? I open the excel application with this file and then populate it. Once I turn it over to the user because Excel is open, I want it already named as an excel file (.xls) so when the user saves the file, they don't have to make sure that...
4
5689
by: Jay | last post by:
What's the recommended way to change file/folder names within a project? I want to change the solution name from (say) sol1.sln to sol2.sln, and also everything else named sol1.* (eg sol1.suo, the folder sol1, and within this folder, sol1.csproj, and also, files within Debug and Release folders) Also, how do I change other names (eg .cs files)? I'm using VS C# 2005 Express.
2
2006
by: Brad Pears | last post by:
I have a bytearray variable and want to create a temporary file on my hard disk from this bytearray so I can print this data. How do I do this?? Thanks, Brad
2
2272
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
I made a typo on a Project name (e.g. Wong, instead of Wang). Later on I renamed the Soution, Project, WebForm., etc, except the file folder name, back to Wang. Then after I closed the VS.net and went back to the Windows Explorer, I found out the file folder name was Wong, so I changed it to Wang. Next time, when I tried to open the Wang project, an error message showed that VS can not open the Wong Web page (something like that). ...
10
14307
by: kai | last post by:
Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#. I look the help files and searched on the web, I cannot find the answer. Is this possble in ASP.NET 2.0? Thanks
2
2489
by: smegghead | last post by:
i'm new to this scripting lark and i need to be able to copy the name of a folder/subfolder into a path statement so i can then use that path to extract data from a specific file in that folder if anyone could help i'd be grateful thx
8
2857
by: zhiyuan | last post by:
Hello everyone: i been trying to write a php script to upload an image to my file within my root file localhost/gw. so then i could display it on a different page, but the book i'm learning from say the image will first upload to a tmp file on the localhost, however, i could not find this tmp file they are talking about,or even where the image go after i click add or submit. so do i have to crate a tmp file, and let the image first store in?...
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.