Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2008, 01:13 PM
Authorized User
 
Join Date: Jun 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page_Load not firing on "Cntrl + N"

Hi All,
I have a asp.net web form.
when I do a postback on my webpage and then do a "cntrl + N" to open new window...it does not call the server.

I want to call Page_Load everytime I open a new window using "Cntrl +N".

Any ideas on how to achieve this.

Thanks,
--Monika.
 
Old March 14th, 2008, 02:09 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

There are many browsers out there and they all have their own behavior when you open a new window. For me Firefox opens a new window with nothing in it (probably because I have no home page set). Internet Explorer opens a new window with the same page from the previous window open. However, it opens the page from the cache if it can it would seem.

The only way you'll be able to enforce this "always load" behavior is to explicitly set an immediate expiration for the page so the browser is forced to re-request the page every time it loads it. However this will have the side effect of also reloading the page if the user hits the browser back/forward button and goes views your page again.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access - calculate a cntrl/values from 2nd cntrl CongoGrey Access 3 April 8th, 2005 06:48 AM
Page_Load not working! New2ASPnet General .NET 6 July 28th, 2004 01:53 PM
forcing a page_load ? Rashe ASP.NET 1.0 and 1.1 Basics 2 February 16th, 2004 10:53 AM
force Page_Load miguel.ossa ASP.NET 1.0 and 1.1 Basics 7 January 23rd, 2004 06:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.