Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

client variable ---> server variable 1

Status
Not open for further replies.

loganswell

Programmer
Dec 28, 2000
111
GB
Hi there,

My script involves both client and server side vbscript. Can anyone tell me if it is possible to assign the value of a client variable to that of a server variable (without passing with querystring).

I have seen that it is possible for the reverse of this to be done.

Thank you

Jim
 
Yes, but you're thinking it's more complicated then it is.
<% servervalue = &quot;something&quot; %>

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
dim value
value = &quot;<%=servervalue%>&quot;

-->
</SCRIPT>

Server side code takes the <%=%> and replaces it with the value. The client-side VB script then just has text there. I do this a lot with JavaScript, and it should work fine with any client-side scripts.

Hope this helps. Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
You cannot. You must send data to the server and process it on server side (querystring or form).
 
phuctran - thank you for your response.... hey I don't suppose you have any sample code that you could paste here? It would be really appreciated - I'm goin' nuts here
Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top