/// <summary> /// 下移 /// </summary> protected void LinkButton2_Command(object sender, CommandEventArgs e) { Columns move = new Columns(); move.Manage_Id = Convert.ToInt16(e.CommandArgument); move.MoveDown(); BindGridView(); }
protected void Button1_Click(object sender, EventArgs e) { int Error; Columns insert = new Columns(); insert.Manage_CollapseImage = Manage_CollapseImage.Text.ToString(); insert.Manage_Name = Manage_Name.Text.ToString(); insert.Manage_OpenImage = Manage_OpenImage.Text.ToString(); insert.Manage_ParentId = Convert.ToInt16(Manage_ParentId.SelectedValue); insert.Manage_Show = Convert.ToBoolean(Manage_Show.SelectedValue); insert.Manage_Target = Manage_Target.Text.ToString(); insert.Manage_Url = Manage_Url.Text.ToString(); Error = insert.AddData(); if (Error != 1) { Response.Write(Error.ToString()); return; } Response.Redirect("Default.aspx", true); }