new window with paramters

  • Thread starter Thread starter Agnes
  • Start date Start date
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
 
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>
 
how are you retrieving the value in test.aspx ?

label1.text = request.params("doc")
 
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!
*************************************************
 
Back
Top