protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { string code = e.CommandArgument.ToString();; if (e.CommandName == "Edit") { Response.Redirect("ConnectEdit.aspx?ID=" + code + "&code=" + codeStr); } else if (e.CommandName == "Delete") { WebBLL.DeleteActivityPro(new Guid(code)); Response.Redirect("ConnectPro.aspx?code=" + codeStr); } }