472,135 Members | 1,183 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Can you refresh a form displayed via showmodaldialog method

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
5 3450
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
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
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
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
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.

Similar topics

6 posts views Thread by laura | last post: by
2 posts views Thread by Jonathan | last post: by
2 posts views Thread by Simon Storr | last post: by
reply views Thread by teddysnips | last post: by
15 posts views Thread by tmax | last post: by
reply views Thread by leo001 | last post: by

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.