如何在 .ashx Web 处理程序文件中找到名为 ProcessRequest 的进程?
我有一个 context.Request.QueryString 项在 .ashx 处理程序的 ProcessRequest 方法中返回错误的值。
代码如下:
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim strOrderItems As String = Convert.ToString(context.Request.QueryString("OrderItems"))
End Sub
“OrderItems”返回的值之一是错误的。如何找出哪个进程调用了此方法来修复不正确的数据?
I have a context.Request.QueryString item that is returning the wrong value in the ProcessRequest method of a .ashx handler.
The code is like so:
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim strOrderItems As String = Convert.ToString(context.Request.QueryString("OrderItems"))
End Sub
One of the values returned by "OrderItems" is wrong. How can I find out what process has called this method to fix the incorrect data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它由 ASP.NET 框架代码调用。您检查了
context.Request.Url.ToString()
的值吗?该 URL 更有可能不是您想象的那样。It's called by asp.net framework code. Did you check the value of
context.Request.Url.ToString()
? It's more likely that the URL is not what you think it is.