private void GetPicture() { try { using (DataClassesDataContext data = new DataClassesDataContext()) { var picture = data.GetTop1Picture().ToList(); imgPic.ImageUrl = "~/images/image/" + picture[0].HINH; } } catch (Exception ex) { // error message here } }