protected void Page_Load(object sender, EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(AreaAdd)); MyAddInit(); if (!IsPostBack) { PID.BindDblArea(false, "", "AreaID"); if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.VIEW) { btnSave.Visible = false; } if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.EDIT) { area_code.enabled = false; } BindPage(ID); } }