Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to access variables from server to client (with sample codes

good day. isit possible to access variables (code) from ASP server script to ASP client page?? take for example the code supplied below:

'server script
<%@ Language=VBScript %>
<%
dim svalue
svalue="access me"
%>

'client code



dim x
x = svalue 'svalue isfrom server script
response.write x




Comments

  • weirdmixweirdmix Member Posts: 27
    : good day. isit possible to access variables (code) from ASP server script to ASP client page?? take for example the code supplied below:
    :
    : 'server script
    : <%@ Language=VBScript %>
    : <%
    : dim svalue
    : svalue="access me"
    : %>
    :
    : 'client code
    :
    :
    :
    : dim x
    : x = svalue 'svalue isfrom server script
    : response.write x
    :
    :
    :
    :
    :
    just do this:
    'client code



    dim x
    x = "<%=svalue%>" 'svalue isfrom server script
    msgbox x




    this should work...
Sign In or Register to comment.