A
Alan Silver
Hello,
I'm doing a cross page post, and want to pick up information from the
previous page. The problem is that the previous page contains a user
control that is loaded into a Placeholder at run time. I can't seem to
get at the Placeholder from the target page.
The first page has an empty placeholder, and the code-behind loads a
user control dynamically and adds it to the placeholder. The user
control grabs an ID from the querystring (hidden by using URL rewriting)
and adds HTML to the control itself.
On (cross page) posting, the target page does the following...
if (PreviousPage != null) {
PlaceHolder plcProductDetails =
(PlaceHolder)PreviousPage.FindControl("plcProductDetails"); }
but this always comes out null. Any ideas? Thanks for any help.
I'm doing a cross page post, and want to pick up information from the
previous page. The problem is that the previous page contains a user
control that is loaded into a Placeholder at run time. I can't seem to
get at the Placeholder from the target page.
The first page has an empty placeholder, and the code-behind loads a
user control dynamically and adds it to the placeholder. The user
control grabs an ID from the querystring (hidden by using URL rewriting)
and adds HTML to the control itself.
On (cross page) posting, the target page does the following...
if (PreviousPage != null) {
PlaceHolder plcProductDetails =
(PlaceHolder)PreviousPage.FindControl("plcProductDetails"); }
but this always comes out null. Any ideas? Thanks for any help.