Page_Load for Child.aspx web dialog

G

Guest

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
 
S

Steven Spits

DavidS said:
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.NoCache);

Steven

- - -
 
E

Eliyahu Goldin

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 said:
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
 
R

RE: Page_Load for Child.aspx web dialog

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 dialo

From http://search.yahoo.com/search?p=pa...spx&prssweb=Search&ei=UTF-8&fr=yfp-t-500&x=wr

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top