I meant by AJAX popup the ModalPopupExtender..sorry should have been more explicit
I only want to update part of the existing window.
There are a lot of inputs on the page and a usercontrol. The usercontrol has a button called "Add" next to a dropdownlist.
When user clicks "Add" I want a popup to display for user to input a new item, and when they click "Save" the new item added to a file, the popup closesd, and then the FillData method called to rebound to the dropdownlist.
I only want the dropdownlist to update, not a whole page refresh
Hope this makes sense
Main Topics
Browse All Topics





by: sybePosted on 2009-11-02 at 09:16:20ID: 25721303
What is an "AJAX Popup"? I know what AJAX is and I know what a popup is. But the combination is weird. AJAX is usually used to update a part of the existing window without reloading the whole page. A popup is a separate (smaller) window, opened by javascript from the main window.
Anyway. To refresh the parent window, you could add some javascript to the popup just before it closes:
<script>
opener.refresh();
//above does not work in all browsers, but this should (as long as it is a GET, not sure about POST)
opener.location.href = opener.location.href;
</script>