Hi,
usage of IsCrossPagePostBack is a bit weird. You don't check it from Page
but from PreviousPage property.
Say on page1.aspx you have
<asp:Button ID="Button1" runat="server" Text="Button"
PostBackUrl="page2.aspx" />
And on page2.aspx in code
If Not Page.PreviousPage Is Nothing Then
If PreviousPage.IsCrossPagePostBack Then
Response.Write("It is a cross-page postback")
End If
'Essentially this means that IsCrossPagePostBack property is
sort of clumsy
'If PreviousPage property is non-null, that's already enough to
know it's a cross-page post
End If
If you use C# then it's just checking if(PreviousPage != null){...} and so
on
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Lore" <lo******@libero.it> wrote in message
news:11**********************@r2g2000cwb.googlegro ups.com...
I've been trying for a while, but unfortunately I can't get a
solutions, neighter I was able to find it in google.
In the CrossPostBack referred page the property IsCrossPostBack is
always set to false, while it should be set to true if the
CrossPostBack occured: is there anybody who can explain me why?
Thanks,
Lorenzo