How to get a querystring when it is URLEncoded or has percent characters in ASP.NET

前端 未结 4 2142
Happy的楠姐
Happy的楠姐 2021-01-15 09:50

How to get the actual querystring from the Request object when the querystring is UrlEncoded or has percent characters in ASP.NET?

Basicly, if I have a Url like t

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-15 10:15

    HttpContext.Current.Request.ServerVariables["QUERY_STRING"]
    

    will return the RAW Query String

提交回复
热议问题