473,405 Members | 2,261 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,405 software developers and data experts.

How do I remove the display of popup on hitting the back button of the browser

375 256MB
Hi,


I have two questions

a)

I have a registration page which on successfull registration throws an popup alert

Expand|Select|Wrap|Line Numbers
  1. ClientScript.RegisterStartupScript(this.GetType(), "strJsMessage", "<script language='javascript'>alert('Registered Successfully!');window.document.forms[0].action='index.aspx';window.document.forms[0].submit();</script>");

The popup works fine, and on successfull registration redirects to another page. But when I hit the back button on IE browser, I once again see the popup window which is not visible in Mozilla browser.


Can anyone kindly let me know how to make this popup disappear when it comes to hitting the back button in IE browser

b) I have used required field validator controls and a validation summary which pops up the message about all the required fields that are missing on clicking of the button.

The problem is it shows the summary only but when i chooose the messagebox option as true, it does not popup the message. but when i choose the show summary option it shows.

Any idea.

Regards
cmrhema
Aug 9 '09 #1
4 3373
i don't know what is your implementation of that, but i think you have to do some checking statement of your page_load event, to check is it load by post(summit), or just page_load only.
Aug 13 '09 #2
(b) Don't know what are u talking about. Can't help u. Sorry.
Aug 13 '09 #3
cmrhema
375 256MB
Its ok Danielc, I resolved the issue but disabling the back browser button.
Aug 13 '09 #4
Frinavale
9,735 Expert Mod 8TB
It is not a good idea to disable the back button of the persons browser.
If the person were to leave your page you will have disabled their back button and they will not be able to use it during normal browsing.

I'd use a hidden field to store a boolean that indicates whether or not to display the pop up. This value will be cached and so when the cached version of the page is displayed you can still determine whether or not to display the popup.
Aug 14 '09 #5

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

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
9
by: Ken | last post by:
I am trying to create one image using JavaScript; then later in the script remove the image - not just remove the src. The following creates the image, but I have been unable to remove it. How...
9
by: Rathtap | last post by:
I want to popup a window from my codebehind. The reason is that during the postback the code needs to do some validations and to build the arguments that are passed in the url. How can I achieve...
2
by: tao lin | last post by:
Hi, all I am using VS2003 under WinXP. My WebApp has a WebForm which has a html form has some search condition textbox, once the user fill in the condition and click submit button. My app will...
1
by: dapkniht | last post by:
Hello, Here's my situation... I have an ASP.NET 2.0 (C#) page with a link button. When a user clicks the button I need it to execute the code behind code for the link button on click event. At...
5
by: knowdotnet | last post by:
Hi all, Which is the best way to return a value back to the web page from a pop up page? I have a asp.net web application which opens a popup page on a link button click. The Link button is...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
5
by: wreed06 | last post by:
I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML...
11
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
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,...

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.