protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteName.Text = ""; SiteName.Focus(); SysCategoryDAL dal = new SysCategoryDAL(); int max = dal.GetMaxOrder(); max = max + 1; txtOrder.Text = max.ToString(); } }