473,385 Members | 1,347 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,385 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 3543
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.