473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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="320px";
iParms.DlgH="156px";
var sFeatures="status:no;resizeable:no;help:no;center: Yes;dialogHeight:" + iParms.DlgH + ";dialogWidth:" + iParms.DlgW;
var retValue=window.showModalDialog("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 1823
Looks like it is a caching issue. Use following line at the end of Page_Load
to disable client caching:
Response.ExpiresAbsolute = DateTime.Now.AddDays (-1);

Response.Cache.SetCacheability (System.Web.HttpCacheability.NoCache);

Response.AppendHeader ("Pragma", "no-cache");

Eliyahu
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.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="320px";
iParms.DlgH="156px";
var sFeatures="status:no;resizeable:no;help:no;center: Yes;dialogHeight:" +
iParms.DlgH + ";dialogWidth:" + iParms.DlgW; var retValue=window.showModalDialog("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(HttpCacheability.No Cache);

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
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...
3
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...
4
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...
2
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...
14
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
3
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...
5
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...
3
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...
4
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 -...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...

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.