473,378 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

new window with paramters

I got a datagrid in web page , when the user click the row in the datagrid,
I want to prompt a new window and pass the parameter to that window .
and that "window" will show the corresponsed data (by using datagrid)

how can I do that ??
thanks a lot
Oct 7 '06 #1
3 1047
Now, I can open a new window but fail to pass the parameter. Please help

<td><form action="test.aspx" >
<input type="button" value="Download"
onclick="window.open('test.aspx?doc='ABC'
','mywindow','width=400,height=200')">
</FORM></td>
"Agnes" <ag***@dynamictech.com.hk¼¶¼g©ó¶l¥ó·s»D:O9******** ******@TK2MSFTNGP03.phx.gbl...
>I got a datagrid in web page , when the user click the row in the datagrid,
I want to prompt a new window and pass the parameter to that window .
and that "window" will show the corresponsed data (by using datagrid)

how can I do that ??
thanks a lot

Oct 7 '06 #2
how are you retrieving the value in test.aspx ?

label1.text = request.params("doc")
"Agnes" <ag***@dynamictech.com.hkwrote in message news:e5**************@TK2MSFTNGP03.phx.gbl...
Now, I can open a new window but fail to pass the parameter. Please help

<td><form action="test.aspx" >
<input type="button" value="Download" onclick="window.open('test.aspx?doc='ABC' ','mywindow','width=400,height=200')">
</FORM></td>
"Agnes" <ag***@dynamictech.com.hk¼¶¼g©ó¶l¥ó·s»D:O9******** ******@TK2MSFTNGP03.phx.gbl...
>>I got a datagrid in web page , when the user click the row in the datagrid,
I want to prompt a new window and pass the parameter to that window .
and that "window" will show the corresponsed data (by using datagrid)

how can I do that ??
thanks a lot


Oct 7 '06 #3
Get rid of the single quotes around ABC, as that is munging up the
JavaScript. That should solve your issue. If you need the single quotes, you
will have to UrlEncode the string.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com/

*************************************************
Think Outside the Box!
*************************************************
"Agnes" <ag***@dynamictech.com.hkwrote in message
news:e5**************@TK2MSFTNGP03.phx.gbl...
Now, I can open a new window but fail to pass the parameter. Please help

<td><form action="test.aspx" >
<input type="button" value="Download"
onclick="window.open('test.aspx?doc='ABC'
','mywindow','width=400,height=200')">
</FORM></td>
"Agnes" <ag***@dynamictech.com.hk>
¼¶¼g©ó¶l¥ó·s»D:O9**************@TK2MSFTNGP03.phx.g bl...
>>I got a datagrid in web page , when the user click the row in the
datagrid,
I want to prompt a new window and pass the parameter to that window .
and that "window" will show the corresponsed data (by using datagrid)

how can I do that ??
thanks a lot


Oct 7 '06 #4

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

Similar topics

7
by: |-|erc | last post by:
<?php if ((!isset($s)) && (!isset($msg))) { echo("<table> .... I want some pictures displayed on the main page if its a new visit, but when they search and the url bar changes its skips...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
1
by: Michael | last post by:
Hi, with "window.open" you can define the properties for example "location=no"; But I want to change this property of the aktual (self) window. Is there a way to do it? Thank Michael
5
by: K Viltersten | last post by:
I discovered that when requested http://localhost:52698/ws3/page.aspx and issued a call Response.Write(Request.Params.Count); i got 50 parameters in count. When i actually added some as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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 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.