Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

How to get this value on sever when a client run any html file.

Suppose i have a.htm on my client,
I can get its location with location.href.split("/").slice(0,-1).join("/")
And suppose a.htm is calling mysite.com/index.aspx
Can i get the output of location.href in my server variable
0
searchsanjaysharma
Asked:
searchsanjaysharma
  • 2
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi searchsanjaysharma,

Sure You can.

First get the required values from the location.href and say you are storing those values in a variable called hrefData.
and then in your JavaScript when you call your aspx page

call your page like this : mysite.com/index.aspx?value=hrefData

Regards,
Chinmay.
0
 
searchsanjaysharmaAuthor Commented:
ok
0
 
searchsanjaysharmaAuthor Commented:
ok
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now