From: Luc on
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)
}


From: Luc on
i found it. Just use test as variable.

"Luc" <dfgdf(a)sdfsd> schreef in bericht
news:eKRh2iemKHA.5728(a)TK2MSFTNGP06.phx.gbl...
> 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)
> }
>
>


 | 
Pages: 1
Prev: create a guid
Next: Extending a RichTextBox