i\'m trying to solve a bug in Visual Studio, the suggestion is to stop using UserControls and use Control instead..
So i\'m converting all my UserControl
UserControl
Control has a Page property, which has an IsPostback property. This should give you the value you need.
Control
Page
IsPostback
public class MyControl : Control{ protected override void OnInit( EventArgs e ){ if( this.Page.IsPostBack ){ // do something } } }
MSDN Reference