为什么 ListView_ItemCommand 事件中的 URL 重写不会触发?
ListView
对象的 ItemCommand
触发效果很好,无需 URL 重写
(通过 urlrewriting.net)
Private Sub ListView_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView.ItemCommand
End Sub
当 URL 重写打开时,该事件不会触发。
你能给我指点一个技巧让它们都工作吗?
The ItemCommand
of the ListView
object triggers great, without URL Rewriting
, (powered via urlrewriting.net)
Private Sub ListView_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView.ItemCommand
End Sub
With the URL ReWritting turned-on the event does not trigger.
Could you please point me a trick to make them both work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
URL 重写可能会干扰回发。在这里查看潜在的解决方案: http://ruslany.net /2008/10/aspnet-postbacks-and-url-rewriting/
另外,尝试将以下内容添加到 page_load 事件处理程序中:
The URL Rewriting may be interfering with the postback. Take a look here for a potential solution: http://ruslany.net/2008/10/aspnet-postbacks-and-url-rewriting/
Also, try adding the following to your page_load event handler: