473,624 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with asp server side validation and browser back button issue

4 New Member
Hi,

I am having a signup.asp page where a user enters his details and clicks on subscribe button. I am doing server side validation to check if the user already exists in the database and then allowing him to subscribe using VB script. This subscription will send an email and then redirect to a thank you page once the user is validated. Now my problem is when I hit the browser back button on thankyou.asp page it just flashes the signup.asp page and brings back to the thank you page and in this process another email is sent. Is there any way that I can view the signup.asp page by clicking the browser back button on the thank you page.

Thanks.
Jul 17 '07 #1
7 2485
danp129
323 Recognized Expert Contributor
Hi,

I am having a signup.asp page where a user enters his details and clicks on subscribe button. I am doing server side validation to check if the user already exists in the database and then allowing him to subscribe using VB script. This subscription will send an email and then redirect to a thank you page once the user is validated. Now my problem is when I hit the browser back button on thankyou.asp page it just flashes the signup.asp page and brings back to the thank you page and in this process another email is sent. Is there any way that I can view the signup.asp page by clicking the browser back button on the thank you page.

Thanks.
Check if they user is already subscribed before e-mailing and redirecting.
Jul 17 '07 #2
nkodali
4 New Member
Check if they user is already subscribed before e-mailing and redirecting.
This problem occurs even if the user is subscribing for the first time.
Jul 17 '07 #3
danp129
323 Recognized Expert Contributor
This problem occurs even if the user is subscribing for the first time.
If they hit back in the browser and a new e-mail gets sent then there is not code in place to check if they're already signed up before sending the e-mail and redirecting them again.
Jul 17 '07 #4
nkodali
4 New Member
If they hit back in the browser and a new e-mail gets sent then there is not code in place to check if they're already signed up before sending the e-mail and redirecting them again.
They can subcribe even though they already signed up. There are 3 types of news letters and user can choose any type just by selecting using the check box and for every type he selected he gets a different email. There is no necessity to confirm if he is already signed up or not.
Jul 17 '07 #5
danp129
323 Recognized Expert Contributor
Try this http://www.4guysfromrolla.com/webtech/111500-1.shtml
Jul 17 '07 #6
nkodali
4 New Member
Try this http://www.4guysfromrolla.com/webtech/111500-1.shtml
Nope i read this article and tried to implement something similar but it didnt work in my case. Also i dont have access to thank you page. I need to set something on my signup page only so that it dosent disappear after flasing.
Jul 17 '07 #7
danp129
323 Recognized Expert Contributor
post your code
............... ............... ....
Jul 17 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
8386
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
3
5258
by: Navin | last post by:
Hello friends... On a single asp.net web page i have a single server-side form that contains a couple of user-controls. Each user control has its own functionality and contains server-side textbox controls, requiredfieldvalidator controls which validate the textboxes, and a linkbutton control that postbacks the web page. The problem is, when the user clicks on the linkbutton control on one user control, the requiredfieldvalidator gets...
4
10140
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all the validators. The user enters the data, presses OK. My OK button is dynamically generated as well, with some code-behind logic in
3
1479
by: Quentin Huo | last post by:
Hi: When I tried the following code, I got an error: if I clicked "Click me" button more than one time, and than click "back" button in the IE browser Toolbar, I will get an error: "The page cannot be displayed......". But I won't get any error if I only click the "click me" button one time and then click the browser's "Back" button.
9
2218
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see) in page_load, or elsewhere, that says page.validate, no control says "causesvalidation=true", and the AutoEventWireup is set to false. So I would think that the control's server event function would NOT execute, but it does execute right after...
3
1143
by: A_Republican | last post by:
I have a web application built in .NET Framework 1.1. The application has alot of content so I need to avoid postback at all costs. The application has a javascript file which handles disabling and enabling controls based on specific values of other controls. I also have alot of ASP.NET validation controls which are executed when you click the submit button. My problem is that in the ASP.NET validations I need to know if that control
16
2524
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client uses IE to talk with a server. The user on the client (IE) sees an ASP net page containing a TextBox. He can write some text in this text box and push a submit button.
0
5557
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
53
8365
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script language="javascript" type="text/javascript">
0
8680
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
8624
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
8336
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,...
0
8478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7164
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
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
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2607
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
1485
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.