Get url parameters from a string in .NET

前端 未结 13 1638
一个人的身影
一个人的身影 2020-11-22 11:38

I\'ve got a string in .NET which is actually a url. I want an easy way to get the value from a particular parameter.

Normally, I\'d just use Request.Params[

13条回答
  •  感情败类
    2020-11-22 11:49

    if you want in get your QueryString on Default page .Default page means your current page url . you can try this code :

    string paramIl = HttpUtility.ParseQueryString(this.ClientQueryString).Get("city");
    

提交回复
热议问题