p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Page_Load not firing on "Cntrl + N" (http://p2p.wrox.com/showthread.php?t=66638)

kulkarnimonica March 14th, 2008 01:13 PM

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.

planoie March 14th, 2008 02:09 PM

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


All times are GMT -4. The time now is 10:43 AM.

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