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? 5 3577
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?
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.
for asp.net postbacks to work in a modal dialog, you need to host them in a
frame set
-- bruce (sqlwork.com)
"Tmajarov" <Tm******@discu ssions.microsof t.com> wrote in message
news:12******** *************** ***********@mic rosoft.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?
Putting <base target="_self"> in the <head> section of the page will do the
trick. No frames are necessary.
Eliyahu
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:u8******** ******@TK2MSFTN GP14.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******@discu ssions.microsof t.com> wrote in message news:12******** *************** ***********@mic rosoft.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?
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.c om> wrote in message news:u8******** ******@TK2MSFTN GP14.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******@discu ssions.microsof t.com> wrote in message news:12******** *************** ***********@mic rosoft.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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 as they click the SUBMIT
button - is this possible?
At the moment I have a hyperlink called "back" which, once they have entered
the text and they click SUBMIT, the "back" hyperlink will refresh the page
and it displays the newly entered text....
|
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 ShowModalDialog refresh.
i really dont have any idea :*(
Any help would be SOOOOOOOOOO appreciated ! Thanks in advance!
Jonathan
|
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 showModalDialog. It is
modal as far as the client is concerned but not the server...
In my app I have a datagrid on the main aspx page, I pop up a modal dialog
to edit a record. On closing the modal dialog I'd like to refresh the
|
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 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)...
|
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 other input fields available to fill in. I use the
JavaScript OnChange function (=clientside) that creates a querystring
and does a refresh of the page. It works fine.
| |
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 button
called "cmdFilter" which retrieves data from the database using any
criteria thus selected.
For any of the records retrieved into the grid match certain
conditions, one of the columns will be formed into a hyperlink.
Clicking on this will...
|
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 button
called "cmdFilter" which retrieves data from the database using any
criteria thus selected.
For any of the records retrieved into the grid match certain
conditions, one of the columns will be formed into a hyperlink.
Clicking on this will...
|
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 all working fine. However,
when refresh the browser, I get the following message displayed:
"The page you are trying to view contains POSTDATA. If you resend the
data, any action the form carried out (such as as search or online
purchse) will...
|
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 and then do a refresh of the calling form.
Any ideas on how to get a reference to the calling form?
I tried window.parent.location.reload() , but it doesn't work.
Thanks a lot.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |