In SharePoint,there is a default WebPart called RSS Viewer,and if you click the “XSL Editor” button in the ToolPart of RSS Viewer,it will popup a web page dialog,and you can edit the information and save it.
I am doing something that needs such function,I click the “Edit” button in the ToolPart of my WebPart,it popups a web page dialog.I wrote it like this:
myButton.Attributes.Add("onClick", "window.showModalDialog('/_layouts/MyWebPart/sample.html')");
So,how to save or get the strings in the popuped web page dialog to my WebPart?
Can you rely on jQuery dialog http://docs.jquery.com/UI/Dialog? If you can link jQuery into your webpart, then take a look at this event in it: http://docs.jquery.com/UI/Dialog#event-close. That might be useful for you. This will require your solution architecture change a bit.
Or you don’t want to change the architecture you could analyse the Save button of the modal window that popups in a web debugger like FireBug.