Try our conversational search powered by Generative AI!

Problem while accessing query string values.


Hi All,

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.



Apr 30, 2015 11:39

Hi Feroz,

              I am also facing the same problem any one can help us as soon as possible

Apr 30, 2015 11:43

Perhaps: HttpContext.Current.Request.Url.ToString().

Or maybe: int width = int.Parse(HttpContext.Current.Request.QueryString["width"])

Apr 30, 2015 12:51

Hi Johan Kronberg,

while accessing the url using your code part its retrun the same result like below


Apr 30, 2015 13:31

What about Request.RawUrl ?

Apr 30, 2015 20:05
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.