wilcor14
asked on
open link from popup in original page transfering a parameter established in the code behind
Not sure if this should be posted in the ASP.net section but we'll see.
A popup is opened from a "main" page. Then a link is clicked from the popup that should be opened in the "main" page and a parameter (sUserID) needs to be sent to the "main" page that was established in the codebehind in the popup window. The link in the popup was created in the code behind. So far, this is what I have:
In the popup:
sLink = "<a href='#' onclick='opener.location.h ref='forum /searchpro .aspx?auth or=" & sUserID & "&top=50';window.close();r eturn false;'>Newest 50</a>"
lblPosts.Text = sLink
Thanks in advance.
A popup is opened from a "main" page. Then a link is clicked from the popup that should be opened in the "main" page and a parameter (sUserID) needs to be sent to the "main" page that was established in the codebehind in the popup window. The link in the popup was created in the code behind. So far, this is what I have:
In the popup:
sLink = "<a href='#' onclick='opener.location.h
lblPosts.Text = sLink
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<a href="#" onclick="opener.location.h
But it's creating this link: <a href='#' onclick='opener.location.h
I just tried something and it's working. The correct answer is:
<a href=""#"" onclick=""opener.location.