Hi, I am creating a popupwindow for login like the following
pageHandle = HtmlPage.PopupWindow(new Uri("http://localhost/somepage.aspx")
Now I need to close that window aftter login in completed. How to do it?
Hi, I am creating a popupwindow for login like the following
pageHandle = HtmlPage.PopupWindow(new Uri("http://localhost/somepage.aspx")
Now I need to close that window aftter login in completed. How to do it?
Similar to a JavaScript-issue "window.close", you might be able to issue pageHandle.close().
However, not if this would be cross-site scripting: your application (.xap) and the popup page you navigate to need to be in the same domain, so unless that "localhost" is the same as the app's host, this won't work.