473,480 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Passing information to a new window in .NET

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.

Jul 23 '05 #1
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

Jul 23 '05 #2
Thanks.

Jul 23 '05 #3

<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#?
Jul 23 '05 #4

I'm using C#.

Do I not need the script to open a new window?

Jul 23 '05 #5
vi*********@gmail.com wrote:
[...]
Do I not need [...] to open a new window?


Yes, you do not.
PointedEars
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1498
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...
3
4273
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...
0
1284
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...
10
2444
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....
3
1840
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...
2
977
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...
7
10227
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...
1
993
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...
1
1800
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...
0
7041
marktang
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,...
0
6908
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...
0
7081
jinu1996
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...
1
6737
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...
0
6921
tracyyun
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...
1
4776
isladogs
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...
0
4481
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...
0
2995
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...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.