Vikram

Vikram

  • 1.5k
  • 276
  • 308.1k

Page Load of User Control Not firing inside another User control

Mar 13 2011 12:39 AM
Hi,

            In my application, I have one user control say UC 1 inside that I have another User Control say UC2. In UC2 there are few DropdownList which I fill in !Ispostback section. Now when I run my application, This !Ispostback section not fire hence dropdownlist wont get filled. I want to fill all dropdown list on load. While debugging control always goes in else part and DropDown List won't get filled.

 Code:
                Page_Load of User Control 2 

        if (!Page.IsPostBack)
        {
              // This part never get called. Why??????
              FillDropDownList();
        }
        else
        {
             //Do something...
        }

         Any help appreciated, Thanks.

Regards,
 
 Vikram






Answers (1)