Obviously, You cannot assign a client side varaible to a server side
variable.
OK, and as you think, you CANNOT assign a server side varaible to a client
side variable too.
When you say
var x = <%= a %>;
by the time the Client side script is ready to process, it sees a real value
like
var x = 5;
And this not a good practice anyway, because, you will end up in
var x = ;
if the <%= a %> happened to be NULL
--
Roji. P. Thomas
Net Asset Management
https://www.netassetmanagement.com
"Matt" <> wrote in message
news:...
> If I assign VBScript server side variable a to javascript variable x, it
is
> fine.
> <%
> Dim a, b
> a = 10
> %>
> var x = <%= a %>;
> alert(x);
>
> But if I do the other way around, then it has 500 error. any ideas??
>
> <% b %> = x;
>
>
> thanks!
>
>