protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { Maticsoft.BLL.CMS.PhotoClass class2 = new Maticsoft.BLL.CMS.PhotoClass(); this.txtSequence.Text = class2.GetMaxSequence().ToString(); } }