protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FeedbackBLL bLL = new FeedbackBLL(); Repeater1.DataSource = bLL.OpinionsList(); Repeater1.DataBind(); } }
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { int opId = Convert.ToInt32(e.CommandArgument); if (e.CommandName == "Delete") { int mid = Convert.ToInt32(Session["Mid"]); FeedbackBLL bLL = new FeedbackBLL(); int count = bLL.DeleteFeedback(opId, mid); if (count > 0) { Repeater1.DataSource = bLL.OpinionsList(); Repeater1.DataBind(); } } if (e.CommandName == "Reply") { } }