Using vb.net, I have a button control:
<asp:Button OnClick="commun itiesPrintRepor t()" id="btnPrintCom munities"
runat="server" Text="Button"></asp:Button>
Private Sub btnPrintCommuni ties_Click(ByVa l sender As System.Object, ByVal e
As System.EventArg s) Handles btnPrintCommuni ties.Click
End Sub
That calls a JavaScript function:
function communitiesPrin tReport() {
window.open('co mmPrintNew.aspx ','communitiesP rint','scrollba rs=yes,resizabl e=yes,height=60 0,width=800,men ubar=yes,toolba r=yes');
}
But I want the page that's opening to receive a session variable
session("countr y") for processing. How can I have this session variable
maintained or added to the page as a URL paramater such as
commPrintNew.as px?countryID=<s ession("country ID")
____
DC G
<asp:Button OnClick="commun itiesPrintRepor t()" id="btnPrintCom munities"
runat="server" Text="Button"></asp:Button>
Private Sub btnPrintCommuni ties_Click(ByVa l sender As System.Object, ByVal e
As System.EventArg s) Handles btnPrintCommuni ties.Click
End Sub
That calls a JavaScript function:
function communitiesPrin tReport() {
window.open('co mmPrintNew.aspx ','communitiesP rint','scrollba rs=yes,resizabl e=yes,height=60 0,width=800,men ubar=yes,toolba r=yes');
}
But I want the page that's opening to receive a session variable
session("countr y") for processing. How can I have this session variable
maintained or added to the page as a URL paramater such as
commPrintNew.as px?countryID=<s ession("country ID")
____
DC G
Comment