ReadOnly 属性请求作为 System.Web.HttpRequest 在此上下文中无法访问,因为它是 Friend
我需要读取 ashx 处理程序的上下文值。
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim Resp As System.Web.HttpResponse = context.Response
Dim dd = Resp.Request... ' HERE COMES THE ERROR
End Sub
问题是当我尝试读取位于 dd.Request.Response.Request.Form 的值时出现以下错误
作为 System.Web.HttpRequest 的只读属性请求在此上下文中无法访问,因为它是 Friend
那么我在这里做错了什么?
I need to read the values of the context of an ashx handler.
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim Resp As System.Web.HttpResponse = context.Response
Dim dd = Resp.Request... ' HERE COMES THE ERROR
End Sub
The problem is that I get the following error when I try to read the values located at dd.Request.Response.Request.Form
ReadOnly Property Request As System.Web.HttpRequest is not accessible in this context because it is Friend
So what am I doing wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不应该这样做吗:
您使用响应来获取请求是否有原因?
HTH。
Shouldn't you do:
Is there a reason why you are using the response to get the request?
HTH.