473,703 Members | 2,643 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page_Load for Child.aspx web dialog

Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then reopen the form again by clicking the button control from the parent - the Page_Load function is not called.
parent.aspx <script block>
function UpdD(title)
{
var iParms=new Object();
iParms.DlgTitle =title+"Driver Profile";
iParms.DlgW="32 0px";
iParms.DlgH="15 6px";
var sFeatures="stat us:no;resizeabl e:no;help:no;ce nter:Yes;dialog Height:" + iParms.DlgH + ";dialogWid th:" + iParms.DlgW;
var retValue=window .showModalDialo g("Driver.aspx" , iParms, sFeatures);
}
What do I do to ensure the Page_Load function of Driver.aspx is always called whenever the modal dialog is opened? This is important
Nov 18 '05 #1
3 1844
Looks like it is a caching issue. Use following line at the end of Page_Load
to disable client caching:
Response.Expire sAbsolute = DateTime.Now.Ad dDays (-1);

Response.Cache. SetCacheability (System.Web.Htt pCacheability.N oCache);

Response.Append Header ("Pragma", "no-cache");

Eliyahu
"DavidS" <Da****@discuss ions.microsoft. com> wrote in message
news:56******** *************** ***********@mic rosoft.com...
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load
function is called. After I close the dialog, then reopen the form again by
clicking the button control from the parent - the Page_Load function is not
called. parent.aspx <script block>
function UpdD(title)
{
var iParms=new Object();
iParms.DlgTitle =title+"Driver Profile";
iParms.DlgW="32 0px";
iParms.DlgH="15 6px";
var sFeatures="stat us:no;resizeabl e:no;help:no;ce nter:Yes;dialog Height:" +
iParms.DlgH + ";dialogWid th:" + iParms.DlgW; var retValue=window .showModalDialo g("Driver.aspx" , iParms, sFeatures); }
What do I do to ensure the Page_Load function of Driver.aspx is always

called whenever the modal dialog is opened? This is important
Nov 18 '05 #2
"DavidS" wrote:
What do I do to ensure the Page_Load function of
Driver.aspx is always called whenever the modal dialog
is opened? This is important


Use this line in the Page_Load of Driver.aspx:

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);

Steven

- - -
Nov 18 '05 #3
RE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialogRE: Page_Load for Child.aspx web dialog

From http://search.yahoo.com/search?p=pag...fp-t-500&x=wrt

Posted via DevelopmentNow. com Groups
http://www.developmentnow.com
Oct 5 '06 #4

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

Similar topics

0
4760
by: Funbeat | last post by:
Hi everybody, I'm facing with the following problem (bug ?) : A page is calling another one (export.aspx) for exporting data to excel. The tecnhique used is to create a Excel-MIME stream for viewing it directly in the browser. (below is a sample code)
3
3997
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then IsPostBack=False by now!. The ASPX is opened via client side script (into an iFrame) inside a .HTM file (as ASPX postback causes problems in a modal internet explorer dialog if not in an iFrame!) Anyone know how to get around this - i need to...
4
4251
by: Sileesh | last post by:
Hi I have a btn in Parent.aspx page . On server_click() of the Btn, i am opening a new window called the child.apsx window. Child window also have a Btn. On serverClick of this Btn, I perform some operation . Once the operation is done, i have to close the child window, and refresh the parent window automatically. I am able to close the child window automatically , But not able to refresh the parent window.
2
1600
by: Shady Azzam | last post by:
I have an aspx page that calls a modal dialog which loads another aspx page, using javascript: self.showModalDialog(\\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...
14
3766
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
3
1340
by: Andrew | last post by:
Hello, friends, In a .aspx page, we have a web user control. In both control and .aspx page, we have Page_Load event. My question is: Which event will raised first when rendering this page to clients? Can I change web user control's properties in .aspx Page_Load event so that control's Page_Load can use the new property values I just assigned?
5
2074
by: cmk128 | last post by:
Hi In the following code, when you create a object of class child, parent class (class mother) will hold a reference. But i want every class derived from mother class has this ability without changing its constructor. how to? #include <string> #include <vector> #include <iostream>
3
3624
by: AboutJAV | last post by:
Hi, I created a child dialog to tell the user that there is a loading of data from the database. When the loading is done, the child dialog will close. The child dialog contains a custom control and the child dialog with the custom control show up fine if the dialog is called as a modal state dlgLoading.ShowDialog();
4
2985
by: psbasha | last post by:
I would like to create a Parent and Child Dialog in Tkinter. Parent Dialog will be having have the Combo Box with Geometry Selection Parent Dialog : ------------------- - Point - Line - Circle - Helix
0
8749
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
9243
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
9109
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
9002
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,...
1
6585
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5922
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
4677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2434
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.