[英]c# Request.QueryString 2 Values
I have url being passed to my page something like /default.apsx?id=123&user=justin 我的网址被传递到我的页面,例如/default.apsx?id=123&user=justin
In my code I already have a Request.Querystring
running to grab the id, but I need also to grab the user. 在我的代码中,我已经运行了
Request.Querystring
来获取ID,但是我还需要获取用户。 How would I do this? 我该怎么做?
string user = Request.QueryString["user"];
Request.QueryString["id"]
和
Request.QueryString["user"]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.