new window with paramters

A

Agnes

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
 
A

Agnes

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>
 
J

Jon Paal

how are you retrieving the value in test.aspx ?

label1.text = request.params("doc")
 
C

Cowboy \(Gregory A. Beamer\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top