Reputation:
I have a aspx page. On some processing on the page, I am attaching some values to the url with javascript.
Ex:
http://localhost:8080/Default.aspx#value1
Now I do a postback, How do I get the url with javascript appended values(#value1)?
Upvotes: 3
Views: 1142
Reputation: 92
Request.RawURL will not work either,
The RawUrl property returns the portion of the URL that does not contain the website address.
e.g. In www.example.com/home/account, rawurl will return
/home/account only.
you need to reserve your url before making a postback.
Upvotes: 0