Using vb.net, I have a button control:
<asp:Button OnClick="communitiesPrintReport()" id="btnPrintCommunities"
runat="server" Text="Button"></asp:Button>
Private Sub btnPrintCommunities_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnPrintCommunities.Click
End Sub
That calls a JavaScript function:
function communitiesPrintReport() {
window.open('commPrintNew.aspx','communitiesPrint' ,'scrollbars=yes,resizable=yes,height=600,width=80 0,menubar=yes,toolbar=yes');
}
But I want the page that's opening to receive a session variable
session("country") for processing. How can I have this session variable
maintained or added to the page as a URL paramater such as
commPrintNew.aspx?countryID=<session("countryID")
____
DC G 2 2461
Hi DC G,
I think what you are looking for is the following:
commPrintNew.aspx?=<%= Session("countryID") %>
Hope this helps.
Tod Birdsall, MCSD for .Net http://tod1d.blogspot.com
Help me get free Sony PSP and get one for yourself: http://tinyurl.com/8n4hg
Hi,
Another option
<asp:Button id="btnPrintCommunities" runat="server"
Text="Button"></asp:Button>
Private Sub btnPrintCommunities_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnPrintCommunities.Click
Dim strCommand As String
strCommand =
String.Format("window.open('webform2.aspx?Country= {0}','communitiesPrint',"
& _
"'scrollbars=yes,resizable=yes,height=600,width=80 0,menubar=yes," &
_
"toolbar = yes ');", Session("Country").ToString)
RegisterClientScriptBlock("communitiesPrintReport" , "<script
language=""JavaScript"">" & strCommand &
"</script>")
End Sub
Ken
-------------------
"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:eQ*************@TK2MSFTNGP12.phx.gbl...
Using vb.net, I have a button control:
<asp:Button OnClick="communitiesPrintReport()" id="btnPrintCommunities"
runat="server" Text="Button"></asp:Button>
Private Sub btnPrintCommunities_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnPrintCommunities.Click
Session("Country") = "Your value"
End Sub
That calls a JavaScript function:
function communitiesPrintReport() {
window.open('commPrintNew.aspx','communitiesPrint' ,'scrollbars=yes,resizable=yes,height=600,width=80 0,menubar=yes,toolbar=yes');
}
But I want the page that's opening to receive a session variable
session("country") for processing. How can I have this session variable
maintained or added to the page as a URL paramater such as
commPrintNew.aspx?countryID=<session("countryID")
____
DC G This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marshall Dudley |
last post by:
When I do the following line in Netscape, the popup loads as it should,
but the parent window usually, but not always, reloads as well.
<a href="#"...
|
by: Lajos Kuljo |
last post by:
Hi,
if I opened a php-page using
... onclick=\"help=window.open('help.php', 'Help',
'innerHeight=400,innerWidth=400,screenX=555,screenY=250,dependent=Yes,bar=Yes');
....
is there a way to...
|
by: Rik Brooks |
last post by:
I know that I can redirect my user to another url with Response.Redirect, but
is there a way to open another browser, preferrably one with the menu and
toolbars not visible?
In other words, I'm...
|
by: J Gao |
last post by:
Hi, experts,
On a button click, I need to save some data to the session object. Then open
a new window. The new window will use the session data saved in the first
window. I don't want use to...
|
by: Shamin |
last post by:
Hi,
Thanks in advance for answering to my Question. I'm stuck with this
problem and would really appreciate any help.
I have 2 aspx files (Main.aspx and ReportViewer.aspx). Main.aspx has a...
|
by: Chris |
last post by:
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz"...
|
by: Jorge Ponte |
last post by:
hi
I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In
that WUC I want have a textbox and a button. I want to click on the button
and open a popup (I use javascript for...
|
by: shil |
last post by:
I have a server side button that needs to do some preperation and
afterwards, if everything goes well, open a new browser with a specific
url.
I know how to execute javascript from a server side...
|
by: Miguel Dias Moura |
last post by:
Hello,
i have an ASP.net page with a button. When the button is clicked i want to
open a new Browser window (400x200px) having only the title bar and nothing
else.This browser window would load...
|
by: David C |
last post by:
I have an ASP.Net page that does a Response.Redirect to a code-created url.
Is there any way to code the redirect to open a new window similar to the
Javascript window.open() ? Thanks.
David
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |