protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Category cats = new Category(); cats.GetAllCats(); uiRepeaterCats.DataSource = cats.DefaultView; uiRepeaterCats.DataBind(); Room rooms = new Room(); rooms.GetRoomsByCreatorID(Member.CurrentMemberID); catlink_minecount.Text = rooms.RowCount.ToString(); rooms.GetFavoriteByMemberID(Member.CurrentMemberID); catlink_favcount.Text = rooms.RowCount.ToString(); } }