I have a legacy application at my hand which uses ASP.NET WebForms.
My problem here is that, LinkButton controls doesn’t set the Page.IsCrossPagePostBack to true. In this application, there are 6 LinkButton controls which are used to create related entities (they post back to a different page than the action of the form element). This MSDN Article claims that PostBackUrl causes Page.IsCrossPagePostBack to become true. But in my code, this is not the case. It always returns false.
Any idea?
It’s a bit counterintuitive, but you have to read very carefully:
So the solution is: