473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Back Button Problems

TCB
I have a problem...I have a classified adds web app. This if what is
happening:

1. The user enters the site
2. The user checks one of the adds. This web page has a user control that
load similar adds to the one the user has currently selected, in this same
user control there is a form so the user can contact the seller. So when the
page loads, all the contact information of the seller is loaded into this
user control, exept the email address that is loaded into a var so no email
"fhishers" can grab the address.
3. The user goes and checks one of the similar adds shown on the similar
adds list in that user control.
4. The user decides to go back and contact the seller from the first add he
saw, but he only hits the back button on the browser, so no data reloads on
the previous page and the variable with the sellers email address still has
the value from the second add, not the firs one (wich he intends to contact
the seller) so the contact message goes to another person.

PLEASE HELP!

TIA!
Feb 17 '06 #1
3 951
Thus wrote TCB,
I have a problem...I have a classified adds web app. This if what is
happening:

1. The user enters the site
2. The user checks one of the adds. This web page has a user control
that
load similar adds to the one the user has currently selected, in this
same
user control there is a form so the user can contact the seller. So
when the
page loads, all the contact information of the seller is loaded into
this
user control, exept the email address that is loaded into a var so no
email
"fhishers" can grab the address.
3. The user goes and checks one of the similar adds shown on the
similar
adds list in that user control.
4. The user decides to go back and contact the seller from the first
add he
saw, but he only hits the back button on the browser, so no data
reloads on
the previous page and the variable with the sellers email address
still has
the value from the second add, not the firs one (wich he intends to
contact
the seller) so the contact message goes to another person.
PLEASE HELP!


You could try to make your pages non-cacheable, but that doesn't work across
all browsers:

Response.Cache.SetCacheability(HttpCacheability.No Cache);

A safer approach is not to cache the E-Mail address at all, but retrieve
it only when it's required.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 17 '06 #2
I'm with Joerg on this one. That "should" (theres always exceptions)
make the page load completely again after the uesr hits the back
button. This should auto-fill your information for the correct seller.
Also, Joerg is correct with the email address. If its not something
your displaying on the screen then don't pull it until you need it.

Jeremy Reid
http://blackstaronline.net/hgtit

Feb 17 '06 #3
TCB
Thank you both! =)

I found that if I save the Email address in the viewstate of the usercontrol
this seems to work. But if someone thinks that that is unsafe of could not
work sometimes, please let me know.

Thanks again.
"blackstaronline.net" <jr***@blackstaronline.net> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I'm with Joerg on this one. That "should" (theres always exceptions)
make the page load completely again after the uesr hits the back
button. This should auto-fill your information for the correct seller.
Also, Joerg is correct with the email address. If its not something
your displaying on the screen then don't pull it until you need it.

Jeremy Reid
http://blackstaronline.net/hgtit

Feb 17 '06 #4

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

Similar topics

4
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
12
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ----------------------------------------------------------------------------...
0
by: Margaret | last post by:
I've got my forms more or less working - the login form now has a regular button instead of an asp:button, so I can attach the Window.Open call for the next page in the client code. I moved the...
9
by: jcnews | last post by:
When designing a webpage, is there a way to disable the back button? It must be possible. I am asking because there are certain web applications that I have used that require the user to...
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
3
by: The One | last post by:
Have created a form to pop up with 2 option I then wish to write the text that is in the option button chose back to the original form using the code below but it gives me an exception error so...
11
by: bill | last post by:
I dynamically create buttons and associate them with an event using AddHandler. I want all the button events to fire at one time, when the page is posted, instead of when each button is clicked....
3
by: Tom | last post by:
Basically I have a page that I load with 10 input fields. If users have JS enabled I want to hide 5 of these fields so as to reduce clutter. If the user needs these extra fields an "Add" button can...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.