If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: ASP and VBScript

No, you can't call ASP function from client-side script, becuase by the time
the client-side script runs the server is already finished and it's not an
interactive process. Any serve code you want to run has to originate from
the browser submitting a page / going to a new URL etc.

You can however 'pass' ASP variables to client side code in a manner of speaking
:

<% 'server code
dim x
x = 1
%>

<script language=pants>
'client code
dim y

'assign y (client var) the value of x (server var)
y = <% =x %>

</script>

You can also 'generate' client script in much the same way as you would construct
an sql statement etc.

Re: ASP and VBScript

Assign them to a hidden field in your client-side script that exists inside
a <form> tag, and then post that form data from the client, or pass them to
the server via a cookie or URL parameter. Use the Request object on the
server to retrieve the values and store them in the Session variable.