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
searchsanjaysharmaAsked:
Who is Participating?
 
Chinmay PatelConnect With a Mentor Enterprise 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
All Courses

From novice to tech pro — start learning today.