Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

BACK BUTTON AND WINDOW.OPEN ISSUE!!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
javs1983@gmail.com - 02 Apr 2008 04:17 GMT
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 the end of the code behind code for
the
link button click event, I use JavaScript to popup another browser
window
(using window.open).

This all works fine. It's basically a confirmation popup.

The issue comes in when the user closes the popup and continues to
work with
the site and they click the back button. If they click the back button
to
the correct place, the popup window appears again, which I don't want.
I
only want to popup to appear if the user clicks the link button on the
page
in question, not by using the back button.

So, would anyone know how to prevent the popup window from "popping
up" when
the user uses the back button?

Thanks.
cfps.Christian - 02 Apr 2008 13:58 GMT
Since .NET pages post back to themselves you can check to see if
history(0) = current page and determine to show the popup should that
be true or something similar.  You could also get into using an AJAX
control with the modal popup so its all server side.

Not necessarily the best solutions but I figured there needed to be at
least one attempt.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.