'System.Web.HttpRequest.QueryString' denotes a 'property' where a 'method
2008-08-26 04:42
429 查看
描述:err: 'System.Web.HttpRequest.QueryString' denotes a 'property' where a 'method
原因:.Net里的C#语法环境下,HttpRequest.QueryString 据说是因为QueryString被当作是Array所以要放在中括号里面。
QueryString是Request的property,属性。曾经试图使用(),就出现错误。
解决:正确是使用[]
注意:从asp过来的朋友,要注意这个细节。习惯用vbs的写法更加容易出错哟!
补充:第一次发贴,不知道个中规矩,讨饶了!抱歉!
原因:.Net里的C#语法环境下,HttpRequest.QueryString 据说是因为QueryString被当作是Array所以要放在中括号里面。
QueryString是Request的property,属性。曾经试图使用(),就出现错误。
解决:正确是使用[]
注意:从asp过来的朋友,要注意这个细节。习惯用vbs的写法更加容易出错哟!
补充:第一次发贴,不知道个中规矩,讨饶了!抱歉!
相关文章推荐
- 不能以方法的方式使用不可调用的“system.web.httprequest.querystring”
- org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported解决!
- HttpServletRequest getQueryString();
- 解决错误at System.Net.HttpWebRequest.GetResponse()
- HttpWebRequest 下载网页Html代码 POST方式(站内使用了form方式) System.Net.WebException (417) Expectation failed
- httpServletRequest.getQueryString()返回null的异常 初学者错误
- System.Web.HttpRequestValidationException异常的最好解决方法
- 文件上传 content-type:application/json System.Web.HttpContext.Current.Request.InputStream 读取不到数据
- System.Web.HttpRequestValidationException: 从客户端(dbFlag="<soap:Envelope xmlns...")中检测到有潜在危险的 Request.Form 值。
- WebRequest.Proxy Property (System.Net)
- springMVC:org.springframework.web.servlet.PageNotFound.handleHttpRequestMethodNotSupported Request method 'POST' not supported
- String cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- Web crash:The method getDispatcherType() is undefined for the type HttpServletRequest
- 解决问题: .Net异常 Method not found: Void System.Web.UI.WebControls.BaseDataList.set_Caption(System.String).
- laravel引入laterll的alipay支付问题:Non-static method Symfony\Component\HttpFoundation\Request::getQueryStri
- System.Web.HttpRequestBase转HttpWebRequest
- HttpRequest.Item 属性 和 HttpRequest.QueryString 属性的区别!
- 2008年3月小记(设置Windows服务的依赖关系,配置MSMQ的访问权限,WCF的安全配置,删除重建网站,HttpWebRequest,一年中的周,在WCF中使用HttpContext,String.Join)
- System.Web.HttpRequestValidationException解决方法
- “System.Web.HttpRequestBase”未被引用的程序