开发者

Why the in the ListView_ItemCommand event does not trigger on URL-Rewriting?

开发者 https://www.devze.com 2023-02-15 22:34 出处:网络
The ItemCommand of the ListView object triggers great, without URL Rewriting, (powered via urlrewriting.net)

The ItemCommand of the ListView object triggers great, without URL Rewriting, (powered via urlrewriting.net)

Private Sub L开发者_开发技巧istView_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?


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:

protected void Page_Load(object sender, EventArgs e)
{
    form1.Action = Request.RawUrl;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消