M
michael.neel
Here is the setup:
I have an SQL driven sitemap provider - when the user clicks on a
database generated link - /Site/DBPages/Article1.aspx - a handler does
a Server.Transfer - Server.Transfer("/Site/Template.aspx", true) - to a
template page which displays the database related content. The
Template page knows it's content because the page does exist in the SQL
sitemap provider.
The problem comes in with a button on /Site/Template.aspx - by default
it will post back to "/Site/Template.aspx" instead of the user's URL
bar value "/Site/DBPages/Article1.aspx" - so I set the button's
PostBackURL to "/Site/DBPages/Article1.aspx" and the page posts to the
correct page ok.
But Page.PreviousPage is null, Page.IsPostBack is false, and there is
no event information on the button click. Request.Params does have a
__PREVIOUSPAGE - it's just not getting used it seems.
I think the Server.Transfer on the postback is stripping off the
PreviousPage, but I'm not sure.
Mike
I have an SQL driven sitemap provider - when the user clicks on a
database generated link - /Site/DBPages/Article1.aspx - a handler does
a Server.Transfer - Server.Transfer("/Site/Template.aspx", true) - to a
template page which displays the database related content. The
Template page knows it's content because the page does exist in the SQL
sitemap provider.
The problem comes in with a button on /Site/Template.aspx - by default
it will post back to "/Site/Template.aspx" instead of the user's URL
bar value "/Site/DBPages/Article1.aspx" - so I set the button's
PostBackURL to "/Site/DBPages/Article1.aspx" and the page posts to the
correct page ok.
But Page.PreviousPage is null, Page.IsPostBack is false, and there is
no event information on the button click. Request.Params does have a
__PREVIOUSPAGE - it's just not getting used it seems.
I think the Server.Transfer on the postback is stripping off the
PreviousPage, but I'm not sure.
Mike