how to get variable in javascript from vb.net?

  • Thread starter Thread starter Luc
  • Start date Start date
L

Luc

Hi,

i need a filename from vb.net to javascript in order to open it in a window,
but i don't know how to get that name in javascript.
The right name depends on different variables.

vb.net
------
dim test as string
....
....
test="myfile.aspx"
ClientScript.RegisterStartupScript(Me.GetType(), "redirect","fen('" & test &
"');" , True)

javascript
---------
<script type="text/javascript">
function fen(test)
{
xx = "toolbar=no, status=no, menubar=no,location=no,directories=no,
scrollbars=yes,resizable=yes"
window.open("????", "", xx)
}
 
Back
Top