Hi,
This is my first-time posting, so apologies if format etc. is not
correct.
I have a my.aspx page containing fields that have been manually
populated (e.g. a textbox). With a click of a button I want another
my.apsx window to open populated with the same information.
I found the following Javascript to open a new window:
<script type="text/javascript">
function openwindow(ipt)
{
window.open(ipt,"new_window","*toolbar=no,location =no,directories=no,status=no,menubar=no,scrollbars =yes,resizable=yes,copyhistory=yes,width=400,heigh t=400,top=0,eft=0");
}
</script>
onclick="javascript:openwindow('my.aspx')"
But I do I pass the information from one page to the other?
Thanks, V. 5 1114
Add the parameters to the onclick line.
For examples, two parameters, ID and test, are passed to the page.
onclick="javascript :openwindow*('my.aspx?ID=123&te st=yes')"
or
onclick="javascript :openwindow*('my.aspx?ID=" + ID.value + "&test="+
test.value + "')"
SCDeveloper http://www.sharingcorner.com
<vi*********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com... I have a my.aspx page containing fields that have been manually populated (e.g. a textbox). With a click of a button I want another my.apsx window to open populated with the same information.
I found the following Javascript to open a new window:
<script type="text/javascript"> function openwindow(ipt) {
window.open(ipt,"new_window","*>toolbar=no,locati on=no,directories=no,status=no,menubar=no,scrollba rs=yes,resizable=yes,copyhistory=yes,width=400,hei ght=400,top=0,eft=0");
} </script>
onclick="javascript:openwindow('my.aspx')"
But I do I pass the information from one page to the other?
Is there a particular reason for doing this in JavaScript, when you could do
it completely from the aspx?
Are you using VB or C#?
I'm using C#.
Do I not need the script to open a new window? vi*********@gmail.com wrote: [...] Do I not need [...] to open a new window?
Yes, you do not.
PointedEars This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: J P Singh |
last post by:
Hi All
I have an application which allow users to search our database. Quite a lot
of search fields pull data from other tables. I don't want to populate the
dropdowns (total 14 of them) from...
|
by: Song Zhang |
last post by:
I have two webpage, one is http://appA.mycompany.com/first.html and the
other is http://appB.mycompany.com/second.html
When a user visits first.html, he may click a button A, which launches...
|
by: Steve Wark |
last post by:
I'm trying to develop a lookup form in asp.net (vb), when a button is
clicked a small search form will open in a second window which will display
a list of values. When a value is selected the...
|
by: vbMark |
last post by:
Hello,
I am doing this:
window.location="page2.php?subj="+subj+"&body="+body;
to send information to another page.
However, I don't want that second page to show up or display in any way....
|
by: A Ward |
last post by:
I am trying to find a way to have multiple seperate ASP.Net applications
where I can response.redirect() to a second web application and pass
information. From what I have tried:
* HTTP-GET - I...
| |
by: al |
last post by:
Greetings,
Can someone please write the code for getting System Information
WINDOW(not just information about the CPU and RAM of the pc)??? I
mean when the user clicks the About option in the...
|
by: Tim |
last post by:
When there is a need to pass some dynamic information between 2 managed
assemblies, the "Dictionary object" in Generic form can be used as a method
parameter to pass the information. The...
|
by: nona |
last post by:
Hi all,
i need some help here,
i'm using a datagrid on my ASP.net application, inside the datagrid was inserted a hyperlink on the table
this hyperlink was passing information about the data set...
|
by: rfr |
last post by:
I have a need to use a single version of a Visitor Response Feedback Form on
numerous
HTML documents. Rather than have numerous versions of this, one on each HTML
document, it makes more sense to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |