troubleshooting Question

open link from popup in original page transfering a parameter established in the code behind

Avatar of wilcor14
wilcor14Flag for United States of America asked on
JavaScript
2 Comments1 Solution203 ViewsLast Modified:
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.href='forum/searchpro.aspx?author=" & sUserID & "&top=50';window.close();return false;'>Newest 50</a>"

lblPosts.Text = sLink

Thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros