ASP.NET网站-Server.trans Franser with PreserveForm = true Triggers stackoverflow在转移到该页面已经有效的页面时
最近,我在工作场所遇到了一个错误,如果保存param为true,则server.transforming到页面上已经触发了堆叠式流程。
会触发溢出的示例按钮:
Private Sub bugTest_Click(sender As Object, e As EventArgs) Handles bugTest.Click
Server.Transfer("current aspx page", True)
End Sub
我知道可以通过将“保存”设置为false或使用响应来避免问题。换回,但是我希望更好地了解为什么该错误首先发生。
我确实有一些关于可能导致的理论的理论,但是我对他们中的任何一个都没有足够的信心,无法真正向我的同事解释原因,而我的老板真的很想理解为什么发生虫子。
I recently encountered a bug in my workplace where Server.Transferring to the page that's already active triggers a StackOverflow if the preserveForm param is True.
Example button that would trigger an overflow:
Private Sub bugTest_Click(sender As Object, e As EventArgs) Handles bugTest.Click
Server.Transfer("current aspx page", True)
End Sub
I know that the problem can be avoided by setting preserveForm to false or using Response.Redirect instead, but I was hoping to get a better understanding of why the bug happens in the first place.
I do have some theories about what might cause it but I don't feel confident enough in any of them to actually explain the cause to my coworkers, and my boss would really like to understand why the bug happens.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论