473,769 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ModalWindow not firing Page_Load.. please help

I have an aspx page that calls a modal dialog which loads another aspx page,
using javascript:
self.showModalD ialog(\\target. aspx);

The first time i open the modal dialog, target.aspx's Page_Load runs fine.
But if I close the window and try and reopen it, the Page_Load is not
called, and a cached version
of the page is displayed. Only after i've closed and reopened the browser,
browsed to the original page and called the modal window does target.aspx's
Page_Load run again.

Why is this happening and what can i do to ensure Page_Load is always fired?

Any help is very appreciated,
Shady
Nov 19 '05 #1
2 1603
This is not a permanent solution because it involves client change, but have
you tried opening IE Tools -> Internet Options -> Settings and selecting
"Every visit to the page" and see if the problem repros.

--
- Shuvro
SDE, MSFT

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Shady Azzam" <sh********@gma il.com> wrote in message
news:uh******** *****@TK2MSFTNG P10.phx.gbl...
I have an aspx page that calls a modal dialog which loads another aspx
page, using javascript:
self.showModalD ialog(\\target. aspx);

The first time i open the modal dialog, target.aspx's Page_Load runs fine.
But if I close the window and try and reopen it, the Page_Load is not
called, and a cached version
of the page is displayed. Only after i've closed and reopened the browser,
browsed to the original page and called the modal window does
target.aspx's Page_Load run again.

Why is this happening and what can i do to ensure Page_Load is always
fired?

Any help is very appreciated,
Shady

Nov 19 '05 #2
I actually prefer to turn page output caching off in the ASPX page ...
something like this:

<%@ OutputCache Duration="1" VaryByParam="*" %>

Not sure if this is the very best way to do it, but it seems to work well --
better than telling 100's of users to change their Internet Options.

Wade

"Shuvro Mazumder [MSFT]" <sh*****@online .microsoft.com> wrote in message
news:eZ******** ******@TK2MSFTN GP10.phx.gbl...
This is not a permanent solution because it involves client change, but
have you tried opening IE Tools -> Internet Options -> Settings and
selecting "Every visit to the page" and see if the problem repros.

--
- Shuvro
SDE, MSFT

This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm.

"Shady Azzam" <sh********@gma il.com> wrote in message
news:uh******** *****@TK2MSFTNG P10.phx.gbl...
I have an aspx page that calls a modal dialog which loads another aspx
page, using javascript:
self.showModalD ialog(\\target. aspx);

The first time i open the modal dialog, target.aspx's Page_Load runs
fine. But if I close the window and try and reopen it, the Page_Load is
not called, and a cached version
of the page is displayed. Only after i've closed and reopened the
browser, browsed to the original page and called the modal window does
target.aspx's Page_Load run again.

Why is this happening and what can i do to ensure Page_Load is always
fired?

Any help is very appreciated,
Shady


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7587
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a dropdown in UC1 _________________________ 1) MainPage_Load 2) User Control_1 Load
3
2303
by: Mike | last post by:
Hi, I am adding controls dynamically in a WebForm, but none of these controls' events fire. Here is the class code I am using. I have tried so many things, but nothing works :-( namespace WebApplication1 { using System;
5
2416
by: Dan | last post by:
Hi, I'm going crazy here, please help. I have a parent page that has a user control on it that bubbles up data from a dropdown menu. The drop down menus are populated by a set of radio buttons, each populates the drop downs with unique data. All works well, you check a radio button and the onbubbleevent fires loading the drop downs. A user can then select an item from the drop down and be forwarded (Respose.Redirect) to the appropriate...
1
1078
by: Don Christine | last post by:
Hello, I'm just now learning how to deploy a simple, working ASP.NET application developed in VS.NET 2002 that runs fine on my workstation running IIS. When I copy the project files over to the host site, the page appears okay in the web browser, but none of the events seem to fire. I have a button that, when pressed, is supposed to set the .text property of a label to the current date. However, its
4
3990
by: Seraph | last post by:
Again, I'm rather new here, so if I fail to follow any etiquette, please forgive me and let me know what I've done wrong, but I think this might interest quite a few people. One of my colleaques was endeavoring to create a custom user control to make things a bit simpler, but she noticed that her Page_Load eventhandler was firing twice. So after long hours of research and experimentation, I stumbled upon, imho, is quite the discovery. ...
28
10275
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when appropriate based on your method names . the GridView has OnRowCommand="GridView1_RowCommand" in the aspx. my problem is that the RowCommand event is firing twice (95% of the time) on the page. the other 5% it only fires once. there's no
19
10214
by: furiousmojo | last post by:
This is a strange problem. I have a project where the contents of global.asax application_error are not firing. It is an asp.net 2.0 application using web application projects. I have another app using web application projects and it's firing fine but it was upgraded from the 1.1 framework. Why doesn't my global.asax application_error routine fire?
4
4201
by: TS | last post by:
I am creating a User control and i create some dynamic controls in the init handler. one of the controls is a custom validator which i assign a serverValidate event handler. I usally always do my controls as custom server controls and don't understand why this event won't fire. I figured if the creation of the control was in the init, it would be initialized and have its event handlers set up, then after Load, the control would call its...
1
2871
by: bigijoseph | last post by:
Please help : page load event is not firing. -------------------------------------------------------------------------------- Hi, I am a new to .net. I am trying to learn it. I tried the following code to execute. But the page load event is not firing. I tried , the same function rewriten in C#, then page load event worked absolutely fine. I dont know why the page load event is not firing in VB.net . Could some one try please try my same...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
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
10045
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
9994
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
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.