我使用 request.querystring
只是为了访问我从一个页面传递到另一个页面的参数。
它给了我一个错误。
Non-invocable member 'System.Web.HttpRequest.QueryString' cannot be used like a method.
我正在使用 C#。
如有任何帮助,我们将不胜感激!
最佳答案
听起来你在写:
Request.QueryString("Param");
当你想要的时候:
Request.QueryString["Param"];
注意方括号。
关于Asp.net request.querystring,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5967801/