|
E.g:
public partial class CalcYear: System.Web.UI.Page
{
protected int total = 0;
protected void Page_Load(object sender,EventArgs e)
{
if(!Page.IsPostBack)
{///Bind control data
BindVisitData();
}
}
......
}
Just like the sentence protected int total = 0;, sometimes private int total = 0; is also useful. I don’t know which one to use, or it doesn’t matter. Please expert advice, thank you! |
|