/    Sign up×
Community /Pin to ProfileBookmark

Accessing Server Side Variables

Hi,

Is it possible to Access a serverside variable inside Javascript and change it’s value ?

Anyone please help.

Thanks and Regards,

Nirmal

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@chaudhariJul 11.2005 — Yes u Do it.

surly, u get Server Side Variables using javascript(Means Client Side).

take an example.
-------------------


var userName='<%=Session("UserName")%>';

here userName variable Contains value Of Session("UserName").

Now For Changing value of server Variable U need to post form.

Ok, Ustand?
Copy linkTweet thisAlerts:
@nirmalnarayanauthorJul 11.2005 — Hi,

But i am not using any session variables only normal variables, how can i do it ?

Thanks and Regards,

Nirmal
Copy linkTweet thisAlerts:
@chaudhariJul 12.2005 — 

Take this one
--------


var temp='<%=firstName%>';
Copy linkTweet thisAlerts:
@schokshiAug 02.2005 — Hi, I have a similar question. How can I check the CGI env variable "REQUEST METHOD" in my home.asp file using javascript? I need to set a URL based on the data in post REQUEST METHOD.

Thanks
×

Success!

Help @nirmalnarayan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...