protected void lbSort_Click(object sender, EventArgs e) { LinkButton ImgbutSort = (LinkButton)sender; if (ImgbutSort != null) { //查出当前要排序的字段 DNNGo_DNNGalleryProGame_Slider objC = DNNGo_DNNGalleryProGame_Slider.FindByKeyForEdit(ImgbutSort.CommandArgument); mTips.IsPostBack = true;//回发时就要触发 if (ImgbutSort.ToolTip == "up") { DNNGo_DNNGalleryProGame_Slider.MoveField(objC, EnumMoveType.Up, ModuleId, ArticleStatus); //字段上移成功 mTips.LoadMessage("UpMoveGallerySuccess", EnumTips.Success, this, new String[] { "" }); } else { DNNGo_DNNGalleryProGame_Slider.MoveField(objC, EnumMoveType.Down, ModuleId, ArticleStatus); //字段下移成功 mTips.LoadMessage("DownMoveGallerySuccess", EnumTips.Success, this, new String[] { "" }); } //绑定一下 BindDataList(); } }