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;
}
精彩评论