Thanks for the reply, I'll try to explain a bit more about what I'm trying to do, hopefully that will clear up any confusion.
The steps I have to go through:
1. A link is clicked (http://widget.aspx?referrerid=ADTR)
2. widget.aspx is opened and I capture the referrerid in a string variable (refer = ADTR)
3. A new link is clicked on widget.aspx and a Javascript popup is activated. (window.open('pop.htm?referrerid='#REFERRER VARIABLE#,'mywindoww1'))
My problem is that I don't know how to get the referrerid into the popup window URL and preserve widget.aspx as it is. widget.aspx needs to stay the same after the pop up activates, it can reload but can't change
The code that SreedharK posted above works fine if you are storing the whole URL in a string but you cannot use this variable name in a javascript as far as I am aware.
Basically I need to get
"javascript:window.open('pop.htm?referrerid=" #VARIABLE NAME GOES HERE#"','mywindoww1','status=1,width=800,height=600, scrollbars=0')"
into this asp label in the OnClick event.
<asp:HyperLink id="HyperLink1" onclick="#POP UP CODE GOES HERE#" runat="server" NavigateUrl="#">CLICK ME</asp:HyperLink>
The navigate URL needs to stay as "#" because if you put the javascript code into the navigate URL the pop up works but widget.aspx goes to a page saying [object]
I hope this is a little clearer.