C
caldera
Hi,
I have problem with placeholder which contain web user control. I want to
add user control in placeholder. For example I have a.aspx and in this page
I have a placeholder which is dynamically added web user control lets say at
a time it is added that b.ascx. In this b.ascx I have button and I have a
placeholder in this b.ascx and this placeholder contain a web user control.
When I press the button in this button which add a web user control in
b.ascx. So lets say placeholder in b.ascx at a time it added c.ascx. In this
c.ascx I have a button. My problem occur in this c.ascx button press.
I press b.ascx and it loads normally in c.ascx. That ok. But when I press
c.ascx(which loaded from b.ascx) button, its firs load a.aspx and then
b.ascx but then it doesn't load c.ascx because it load this when the button
in b.ascx. The loading procedure isnot in the page load stage, it is in the
button click stage. As a result I can't capture button click event in
c.ascx. Is it pratical way or is framework supply any tool to deal with this
kind of situtation. When the postback occur, is it possible it load child
of child control from viewstate(I don't want user ViewState.Add() )
Thanks for the answers.
I have problem with placeholder which contain web user control. I want to
add user control in placeholder. For example I have a.aspx and in this page
I have a placeholder which is dynamically added web user control lets say at
a time it is added that b.ascx. In this b.ascx I have button and I have a
placeholder in this b.ascx and this placeholder contain a web user control.
When I press the button in this button which add a web user control in
b.ascx. So lets say placeholder in b.ascx at a time it added c.ascx. In this
c.ascx I have a button. My problem occur in this c.ascx button press.
I press b.ascx and it loads normally in c.ascx. That ok. But when I press
c.ascx(which loaded from b.ascx) button, its firs load a.aspx and then
b.ascx but then it doesn't load c.ascx because it load this when the button
in b.ascx. The loading procedure isnot in the page load stage, it is in the
button click stage. As a result I can't capture button click event in
c.ascx. Is it pratical way or is framework supply any tool to deal with this
kind of situtation. When the postback occur, is it possible it load child
of child control from viewstate(I don't want user ViewState.Add() )
Thanks for the answers.