Home All Groups Group Topic Archive Search About

window.location.href in vb.net?

Author
27 Jun 2006 8:07 AM
André
Hi,

What's the code in VB.net for "window.location.href" in javascript ?

Thanks
André

Author
27 Jun 2006 8:12 AM
Patrice
window.location.href is actually a client side property.

I'm not sure what you are after. Server side you could use Response.redirect
to direct the browser to another location than the current page.

--
Patrice

"André" <yue***@geloerd.fv> a écrit dans le message de news:
edGZGDcmGHA.5***@TK2MSFTNGP04.phx.gbl...
Show quoteHide quote
> Hi,
>
> What's the code in VB.net for "window.location.href" in javascript ?
>
> Thanks
> André
>
>
Author
27 Jun 2006 10:38 AM
Herfried K. Wagner [MVP]
"André" <yue***@geloerd.fv> schrieb:
> What's the code in VB.net for "window.location.href" in javascript ?

There is no equivalent because VB.NET code is executed on the server and
'window.location.href' only makes sense on the client side.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
28 Jun 2006 6:41 AM
André
Thanks

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%2356xNXdmGHA.4032@TK2MSFTNGP02.phx.gbl...
> "André" <yue***@geloerd.fv> schrieb:
> > What's the code in VB.net for "window.location.href" in javascript ?
>
> There is no equivalent because VB.NET code is executed on the server and
> 'window.location.href' only makes sense on the client side.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>