1

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?

OrElse
  • 9,709
  • 39
  • 140
  • 253
  • please add more details in this like which code-block is not working out. Also `Page.ResolveUrl` might solve your problem regarding css/js/image. – Harsh Baid Mar 09 '11 at 12:06

1 Answers1

1

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;
}
NakedBrunch
  • 48,713
  • 13
  • 73
  • 98