Search code examples
c#asp.nettelerikparentradwindow

How to retrieve the name of the "Parent" page from the radwindow?


I found a small problem with my asp website. Here is the principle. -> I set a popup window to allow a user sends an email alert bug. And when the email is sent, I would send the name of the current page of the user. However this returns me the name of the popup window and not the parent page ....

How to retrieve the name page ('.aspx') of the "Parent" page from the radwindow (popup) ?

i have try this but it's not working


Solution

  • Can you try that :

    //myWindow beeing the popup 
    myWindow.document.write("<br><br>" + myWindow.opener.document.location.href + "")
    

    Update

    If you cannot get the popup window object you can pass the url of the calling window in the query string :

    radopen('urlOfThePopup.aspx?opener=' + document.location.href, ...)
    

    Then in your popup code

    <%=Request.Querystring("opener")%>