Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using server side variable from client side

Posted on 2003-11-12
1
Medium Priority
?
199 Views
Last Modified: 2008-03-10
I'm declaring the following in my globa.asa:

Dim x
Set Application("x") = Server.CreateObject("COMSYS.clsCOMSYS")
End Sub

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,

Matt.




0
Comment
Question by:Matt_Unsworth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
thunderchicken earned 450 total points
ID: 9731717
I don't see why this wouldn't work.

ASP is compiled before client code is, so all you do is spit out your variable.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question