Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网址:
sys.php?x=23&y=20&z=9d939b
而且我真的不知道如何从中解析“z”值。
使用HttpUtility.ParseQueryString()方法,这里详述。它将返回一个集合,为您提供所有名称 (x,y,z) 和值 (23, 20, 3d939b)。
HttpUtility.ParseQueryString()
尝试:
var zValue = Request.QueryString["z"];