|
例如:
public partial class CalcYear : System.Web.UI.Page
{
protected int total = 0;
protected void Page_Load(object sender,EventArgs e)
{
if(!Page.IsPostBack)
{ ///绑定控件的数据
BindVisitData();
}
}
......
}
就像protected int total = 0;这一句,有时也有用private int total = 0;的,不知道究竟该用哪种,还是无所谓。请高手指点,谢谢!
|
|