Author: helpjet | Posted on: 4/2/2010 10:51:03 PM | Views : 350

I have myPage.aspx and I am adding user control "myUserControl.aspx" to it dynamically. myPage.aspx also has <asp:Button  />
myUserControl.ascx has <asp:DropDownList .... PostBack="true"/>
I am doing something in load event of myPage.aspx which I don't want to do when PostBack is originated from the user control
 
Following is the load event of myPage.aspx
protected void Page_Load(object sender, EventArgs e) { if ( /*this PostBack was generated by User Control therefore dont do anything */ ); else /*Do your thing*/ ; }
 
 
...

Go to the complete details ...