检索传递到 .aspx (VB) 页面的 GET(在 URL 中)变量的最简单/标准方法是什么?
最佳答案
您可以使用以下内容:
示例网址:http://www.whatever.com?hello=goodbye&goodbye=hello
string value = Request.QueryString("hello");
值(value)将再见
或
foreach(string key in Request.QueryString)
{
Response.write(Request.QueryString(key))
}
关于asp.net - 从 ASPX 中的 URL 检索 GET 变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1033548/