protected void feedFollowing() { int userId = Convert.ToInt32(Session["UserId"]); Classes.Feed f = new Classes.Feed(); DataTable dt = f.eventsFollowing(userId); if (dt.Rows.Count > 0) { RepeaterCity.DataSource = dt; RepeaterCity.DataBind(); } else { //LabelNoRecord.Visible = true; } }
protected void feedCity() { int userId = Convert.ToInt32(Session["UserId"]); Classes.UserInfo ui = new Classes.UserInfo(); int locationId = ui.locationIdByUserId(userId); Classes.Feed f = new Classes.Feed(); DataTable dt = f.eventsCity(locationId); if (dt.Rows.Count > 0) { RepeaterCity.DataSource = dt; RepeaterCity.DataBind(); } else { //LabelNoRecord.Visible = true; } }