473,473 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3548
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: laura | last post by:
I'm doing a page which gathers some text in the form of a text box in a <form>. This text is saved to a text file, notices.txt and I want to be able to display the saved text on the page, as soon...
2
by: Jonathan | last post by:
Hi, i am trying to refresh a ShowModalDialog that contains information. I have search about it but it never seems to be possible. As anybody got some info., way, idea, documentation about a...
2
by: Simon Storr | last post by:
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a 'normal' window, but this doesn't work for...
1
by: Tmajarov | last post by:
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...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
0
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side...
0
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
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
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.