protected void Bind() { BLL.AdminManager adminManager = new BLL.AdminManager(); Model.Admin admin = adminManager.GetModel1(Session["SadminID"].ToString()); int ID = Convert.ToInt32(admin.adminID); Model.Reply reply = new Model.Reply(); BLL.ReplyManager replyManager = new BLL.ReplyManager(); string Str = " receiverID='" + ID + "'"; GridView1.DataSource = replyManager.GetFBList(Str); GridView1.DataBind(); }
protected void Bind() { BLL.UsersManager usersManager = new BLL.UsersManager(); Model.Users users = usersManager.GetModel1(Session["userID"].ToString()); int ID = Convert.ToInt32(users.UserID); Model.Reply reply = new Model.Reply(); BLL.ReplyManager replyManager = new BLL.ReplyManager(); string Str = " receiverID='" + ID + "'"; GridView1.DataSource = replyManager.GetFBList(Str); GridView1.DataBind(); }