By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Can you refresh a form displayed via showmodaldialog method

P: n/a
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the
save(submit) button is clicked I want to refresh the same page with a message
at the bottom that the record was saved. Currently the record saves but the
inline confirmation message does not display because the dialog form does not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Sorry for double post please delete this version.

"Tmajarov" wrote:
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the
save(submit) button is clicked I want to refresh the same page with a message
at the bottom that the record was saved. Currently the record saves but the
inline confirmation message does not display because the dialog form does not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?

Nov 19 '05 #2

P: n/a
On Fri, 17 Jun 2005 13:21:01 -0700, Tmajarov wrote:
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the
save(submit) button is clicked I want to refresh the same page with a message
at the bottom that the record was saved. Currently the record saves but the
inline confirmation message does not display because the dialog form does not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?

You should be able to change the DOM in the dialog once you locate the
window.document reference.

Nov 19 '05 #3

P: n/a
for asp.net postbacks to work in a modal dialog, you need to host them in a
frame set

-- bruce (sqlwork.com)
"Tmajarov" <Tm******@discussions.microsoft.com> wrote in message
news:12**********************************@microsof t.com...
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow
by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in
the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the
save(submit) button is clicked I want to refresh the same page with a
message
at the bottom that the record was saved. Currently the record saves but
the
inline confirmation message does not display because the dialog form does
not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?

Nov 19 '05 #4

P: n/a
Putting <base target="_self"> in the <head> section of the page will do the
trick. No frames are necessary.

Eliyahu

"Bruce Barker" <br******************@safeco.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
for asp.net postbacks to work in a modal dialog, you need to host them in a frame set

-- bruce (sqlwork.com)
"Tmajarov" <Tm******@discussions.microsoft.com> wrote in message
news:12**********************************@microsof t.com...
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the save(submit) button is clicked I want to refresh the same page with a
message
at the bottom that the record was saved. Currently the record saves but
the
inline confirmation message does not display because the dialog form does not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?


Nov 19 '05 #5

P: n/a
All,
Thanks for the replys, I have tired both suggested solutions but neither
actually works the way I want it to. They both work if I navigate away from
the page but not if I am actually changing content on the page (I have also
tried the no cache suggested in the duplicate string). For example from
page1 I launch another window (page2) using the showmodaldialog method. On
page2 there is a button and a panel the panel starts off visible = false.
When the button is clicked the event handler sets the panels visible property
to true. If I open page 2 directly everthing works. If I open using the
showmodaldialog method. The panel will not open.
Tom M.

"Eliyahu Goldin" wrote:
Putting <base target="_self"> in the <head> section of the page will do the
trick. No frames are necessary.

Eliyahu

"Bruce Barker" <br******************@safeco.com> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
for asp.net postbacks to work in a modal dialog, you need to host them in

a
frame set

-- bruce (sqlwork.com)
"Tmajarov" <Tm******@discussions.microsoft.com> wrote in message
news:12**********************************@microsof t.com...
Haven't been able to find a clear answer to this...
I am building an asp.net application and trying to enforce some work flow by
displaying a form via the showmodaldialog method. I can get the form to
display, etc. But I want to refresh the content of the form displayed in the
dialog window without navigating away from the form. For example... the
showdialog method opens up a record to be edited. After editing when the save(submit) button is clicked I want to refresh the same page with a
message
at the bottom that the record was saved. Currently the record saves but
the
inline confirmation message does not display because the dialog form does not
refresh... So my question:
Can the content of the modal dialog be refreshed without navigating away
from the inital page?



Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.