How to Capture Control Initaited the Post Back.

  • Thread starter Thread starter Lolam
  • Start date Start date
L

Lolam

Here is my problem,

I am using 3 user controls in a page(Test.aspx) which are
1.Header UC
2.Body UC
3.Footer UC

HeaderUC has a DropDownList control named "ddlList". On
SelectIndexChanged event of ddlList i am repopulating the
page(Test.aspx) with new set of values.Page_Load event is
fired for Test.aspx and i want to capture ddlList control
has fired the post back event in the Page_Load of
Test.aspx.

Is that possible to acheive,If so how.

Bye.
BabuLolam
 
You can't do it like that. When a post back is called, the Page_Load event
is triggered before any control event that fired the post back. One solution
is to save a value in a hidden field in response to the client side event
and then examine this hidden field in the Page_Load event.
 
Back
Top