简体   繁体   中英

c# Request.QueryString 2 Values

I have url being passed to my page something like /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. How would I do this?

string user = Request.QueryString["user"];

Request.QueryString["id"]

Request.QueryString["user"]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM