I am passing the query string in an ancor tag href attribute like below,
In home.aspx i am trying to access the total href value using the following code like below, but i am not able to get it.
string URL = HttpContext.Current.Request.Url.AbsoluteUri
It gives only home.aspx instead of whole url along with querystrings. Please give me a solution to find the query string values.
I am also facing the same problem any one can help us as soon as possible
Or maybe: int width = int.Parse(HttpContext.Current.Request.QueryString["width"])
Hi Johan Kronberg,
while accessing the url using your code part its retrun the same result like below
What about Request.RawUrl ?