protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { string PersonId = null; if (Request.QueryString["PersonId"] != null) { PersonId = Request.QueryString["PersonId"].ToString(); } ImgPhoto.ImageUrl = null; var ArrayImage = objPacienteBL.getPhoto(PersonId); if (ArrayImage != null) { string pathImage = byteArrayToImage(ArrayImage); string str = @"~\Utils\GetImageText.ashx?" + getParameterRequest("imgDeliverValid", "300", "", "Arial Black", "Black", "9", "30", "20", ""); ImgPhoto.ImageUrl = str; } else { string pathImage = byteArrayToImage(Sigesoft.Common.Utils.FileToByteArray(Server.MapPath(@"~\images\icons\nofoto.jpg"))); string str = @"~\Utils\GetImageText.ashx?" + getParameterRequest("imgDeliverValid", "220", "", "Arial Black", "Black", "19", "30", "20", ""); ImgPhoto.ImageUrl = str; } } catch (Exception) { throw; } } }