02 Feb 2010
05 Oct 2011
Link to this post
When a button control's PostBackUrl property is set, no click events for other buttons are fired.
On trawling the Internet, it appears that this might have something to do with URL rewriting. When a different button is clicked, in Page_Load:
- When there is no URL rewriting (e.g. a standalone ASP.NET website), Page.Postback is true and Page.PreviousPage is null. The click event handler is called.
- When there is URL rewriting (e.g. a Sitefinity-based website), Page.Postback is false and Page.PreviousPage throws an exception that the URL-rewritten page name does not exist. The click event handler is not called.
Is this something that is known about, and is there a fix?