Microsoft Content Management Server - Cross Page PostBack

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > December 2006 > Cross Page PostBack





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cross Page PostBack
jashmore

2006-12-11, 1:16 pm

Hi,

We are experiencing problems with pages using the .NET 2 cross page
postback. Although we have implemented the
ASPNET20_CrossPostbackCorrection HttpModule, and the postback is now
occurring, we are getting exceptions from within the target page as it
seems to be looking for CMS placeholders that only exist in the page
that is being posted.

e.g. After the cross page postback occurs and we call
'Page.PreviousPage', we get the following exception...

[XHTMLPlaceholderControl "XHTMLPlaceholderControl2"] No placeholder was
found for the PlaceholderToBind value "News".


However, this placeholder does not exist in the template of the target
page!! It exists inside the template of the page that was posted. This
is a problem to us because we want to be able to post back to one
target page from multiple pages, all which have different templates /
placeholders.

Regards,

John Ashmore

Stefan Goßner [MSFT]

2006-12-11, 1:16 pm

Hi John,

this will not work because CmsHttpContext is initialized for a differnent
posting.
So Page.PreviousPage cannot be used in this situation.

Cheers,
Stefan

"jashmore" <john.ashmore@pgl.co.uk> wrote in message
news:1165850467.576630.148160@j44g2000cwa.googlegroups.com...
> Hi,
>
> We are experiencing problems with pages using the .NET 2 cross page
> postback. Although we have implemented the
> ASPNET20_CrossPostbackCorrection HttpModule, and the postback is now
> occurring, we are getting exceptions from within the target page as it
> seems to be looking for CMS placeholders that only exist in the page
> that is being posted.
>
> e.g. After the cross page postback occurs and we call
> 'Page.PreviousPage', we get the following exception...
>
> [XHTMLPlaceholderControl "XHTMLPlaceholderControl2"] No placeholder was
> found for the PlaceholderToBind value "News".
>
>
> However, this placeholder does not exist in the template of the target
> page!! It exists inside the template of the page that was posted. This
> is a problem to us because we want to be able to post back to one
> target page from multiple pages, all which have different templates /
> placeholders.
>
> Regards,
>
> John Ashmore
>



jashmore

2006-12-11, 1:16 pm


OK, thanks very much for your speedy reply Stefan.

Regards,

John






Stefan Go=DFner [MSFT] wrote:[vbcol=seagreen]
> Hi John,
>
> this will not work because CmsHttpContext is initialized for a differnent
> posting.
> So Page.PreviousPage cannot be used in this situation.
>
> Cheers,
> Stefan
>
> "jashmore" <john.ashmore@pgl.co.uk> wrote in message
> news:1165850467.576630.148160@j44g2000cwa.googlegroups.com...

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com