user339160
user339160

Reputation:

Get Url in postback

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

Answers (3)

Abhishek Singh
Abhishek Singh

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

Hitesh
Hitesh

Reputation: 37

try this Page.ClientQueryString

Upvotes: 2

Carlos Landeras
Carlos Landeras

Reputation: 11063

Have you tried using:

request.RawURL

Upvotes: 2

Related Questions