how to get variable in javascript from vb.net?

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)
}
 

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

Top