Refresh Parent Page after closing Modal Dialog.
Posted on 2007-03-28
Can you make the parent page refresh after you close a modal dialog page? The Modal page is being opened from a click from an Obout treeview.
sHtml = "<span onclick=window.showModalDialog('report.aspx?txtsearch=" & sCaseNum & "',null,'satus:no;dialogWidth:740px;dialogHeight:600;dialogHide:true;help:no;scroll:no')><table cellspacing='0' cellpadding='0' border='0'><tr><td style='width: 75px' >" & sCaseNum & "</td><td style='width: 75px' >" & rTime & "</td><td style='width: 190px' >" & notes & "</td><td style='width: 100px'></td><td style='width: 75px' ><img src='" & HasIncompletedRecordsXImage & "'</tr></table></span>"
The modal page uses this value to retrieve and display a record from the access database. The modal page gets new information from the user and updates the database and then closes.
I need the treeview to update it's content after this happens. At this point I have to close and restart the page to see the updated data. This is a client request. I am aware that it is much better to just open another page rather than a modal dialog.
Also, if you can't tell. I am fresh out of college and not very experienced =)