Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Url in postback

Tags:

c#

asp.net

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)?


2 Answers

Have you tried using:

request.RawURL
like image 52
Carlos Landeras Avatar answered Nov 19 '25 14:11

Carlos Landeras


try this Page.ClientQueryString

like image 25
Hitesh Avatar answered Nov 19 '25 12:11

Hitesh