protected void lbtnFollow_Click(object sender, EventArgs e) { if (lbtnFollow.Text.Equals("Follow")) { MediaBO obj = new MediaBO(); obj.Id = Photoid; obj.isFollow = true; MediaBLL.updateFollow(obj); } else if (lbtnFollow.Text.Equals("UnFollow")) { MediaBO obj = new MediaBO(); obj.Id = Photoid; obj.isFollow = false; MediaBLL.updateFollow(obj); } LoadFollow(); }