Using server side variable from client side
Posted on 2003-11-12
I'm declaring the following in my globa.asa:
Set Application("x") = Server.CreateObject("COMSYS.clsCOMSYS")
Then I'm using x in my ASP pages as follows:
<%Var = Application("x").SomeMethod%>
However what I want to do is use x on the client side, but I'm confused as to what to do if my method has an argument.
For example, if i declare x on the server side of an ASP page as follows:
<%Var = Application("x").Method%>
Could i then just bring it over to the client side like this:
AgreementSearchResult = <%=AgreementSearchResultServer%>
Would this work??????
What about the argument though, what is the syntax:
AgreementSearchResult = <%=AgreementSearchResultServer.Argument%>
Looking forward to your help,