Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Problems with Http_referer


Message #1 by Anupama Nallari <ANallari@p...> on Mon, 26 Nov 2001 10:33:08 -0600

I saved  the http_referer to a session variable and then used the variable

name in response.redirect(session("lastpage")).

This does not solve the problem as there are certain fields where the user

enters information and all those fields are getting reset when I come back

to that page.

How do I retain that information?



Thanks,

Anu







Message #2 by Sam Clohesy <sam@e...> on Mon, 26 Nov 2001 16:46:47 -0000
Is the form submitted?

Could you hold the form values in cookies?





Sam Clohesy

Project Manager

Tel: 0208 772 3958

E: samc@e...

W: http://www.etypemedia.co.uk





-----Original Message-----

From: Anupama Nallari [mailto:ANallari@p...]

Sent: 26 November 2001 16:33

To: ASP Databases

Subject: [asp_databases] Problems with Http_referer







I saved  the http_referer to a session variable and then used the variable

name in response.redirect(session("lastpage")).

This does not solve the problem as there are certain fields where the user

enters information and all those fields are getting reset when I come back

to that page.

How do I retain that information?



Thanks,

Anu









 




$subst('Email.Unsub')

Message #3 by Anupama Nallari <ANallari@p...> on Mon, 26 Nov 2001 10:41:58 -0600
The form is not submitted. My question would be when the Form is not

submitted is the form not supposed to retain it's values?

I could maybe try to retain values in some session variables and then reload

the values. I looked at the Yahoo mail site and I wanted to know how do we

open a subpage on the main asp page the way they do it in Yahoo mail when we

click on add/delete attachments.  I would like to do something like that.

Open a small window on the main page and allow the user to upload the

required file and then close the window. How do I do that?



Anu

Message #4 by "Daniel O'Dorisio" <daniel@o...> on Mon, 26 Nov 2001 11:54:08 -0500
javascript.. window.open() window.opener.. window.close()



daniel



--

-----------------------------

Daniel O'Dorisio

daniel@o...

www.odorisio-networks.com

-----------------------------

"Anupama Nallari" <ANallari@p...> wrote in message

news:123233@a..._databases...

>

> The form is not submitted. My question would be when the Form is not

> submitted is the form not supposed to retain it's values?

> I could maybe try to retain values in some session variables and then

reload

> the values. I looked at the Yahoo mail site and I wanted to know how do we

> open a subpage on the main asp page the way they do it in Yahoo mail when

we

> click on add/delete attachments.  I would like to do something like that.

> Open a small window on the main page and allow the user to upload the

> required file and then close the window. How do I do that?

>

> Anu

>

>





Message #5 by "Reynolds, Josh" <Josh.Reynolds@e...> on Mon, 26 Nov 2001 12:58:26 -0500
This probably isn't the right list for this, but I had a similar 

problem a while back.  I had one page where the user entered a bunch of 

information, one peice of information they could enter was a file 

upload.  An email page, such as yahoo, like you were saying, is a good 

example.  What I did was make a button to submit the form to the main 

submit page, and test for the name of the submit button.  if it's the 

upload button, then load all the other values on the page into session 

vars, and Server.Transfer to the upload page.  The user then uploads 

their file and is shown a link to click on to go back to the page they 

started on.  Once they get back to that page, the script checks for a 

session var I called isupload (gets loaded when the upload submit 

button is clicked above), and if it's true, set the values for the 

fields on the html page to be equal to the session vars, then remove 

all those temporary session vars.



To do something like Yahoo mail page does, I would imagine you'd have 

to include some javascript in the popup window to somehow return a 

value indicating the success of the file upload and the filename, or 

some id to submit on to the page that puts together the email, so it 

can use serverside code to find the uploaded file, scan it for viruses 

and whatnot, and send it as an attachment to the email.  The main page 

then probably uses some javascript to get that information and update 

the little area that tells you what files are attached to the message.



josh



----- Original Message -----

From: "Anupama Nallari" <ANallari@p...>

To: "ASP Databases" <asp_databases@p...>

Sent: Monday, November 26, 2001 11:41 AM

Subject: [asp_databases] RE: Problems with Http_referer





> The form is not submitted. My question would be when the Form is not

> submitted is the form not supposed to retain it's values?

> I could maybe try to retain values in some session variables and then 

reload

> the values. I looked at the Yahoo mail site and I wanted to know how 

do we

> open a subpage on the main asp page the way they do it in Yahoo mail 

when we

> click on add/delete attachments.  I would like to do something like 

that.

> Open a small window on the main page and allow the user to upload the

> required file and then close the window. How do I do that?

>

> Anu

>

> 



josh.reynolds@e...


$subst('Email.Unsub')


  Return to Index