protected void BindOption() { if (Session[PubEntAdminManager.strPubGlobalMode].ToString() == PubEntAdminManager.strPubGlobalAMode) { this.ListSubject.DataSource = PE_DAL.GetAllCatalogWYNTKSubjectForNew(true); this.ListSubject.DataTextField = "name"; this.ListSubject.DataValueField = "id"; this.ListSubject.DataBind(); this.ListSubject.Items.Insert(0, new ListItem("[Select Subject]", "0")); } else { this.ListSubject.DataSource = PE_DAL.GetAllCatalogWYNTKSubjectForExist(this.PubID, true); this.ListSubject.DataTextField = "name"; this.ListSubject.DataValueField = "id"; this.ListSubject.DataBind(); this.ListSubject.Items.Insert(0, new ListItem("[Select Subject]", "0")); } }