/// <summary> /// Detailses the pop up. /// </summary> /// <param name="strInternalNr">The string internal nr.</param> /// <param name="grvDetail">The gridviewcontrol to bind the detaildatas.</param> /// <param name="ImageID">The image identifier.</param> /// <param name="udpDetails">The updatepanel of details details.</param> /// <param name="htmlModalTitle">The modal title (HTML control).</param> /// <param name="strInternalNr">The string internal nr.</param> public void DetailsPopUp(string strInternalNr, GridView grvDetail, Image ImageID, UpdatePanel udpDetails, System.Web.UI.HtmlControls.HtmlGenericControl htmlModalTitle) { var detailHardware = new Hardware(strInternalNr); DataTable dt = detailHardware.ReturnDatatableHardwareFromInternal(); grvDetail.DataSource = dt; grvDetail.DataBind(); ImageID.ImageUrl = "../UserUploads/Images/" + detailHardware.PicLocation(); htmlModalTitle.InnerText = "Details of " + strInternalNr; var detailModalShow = new JSUtility(ControlID); detailModalShow.ModalShowUpdate(udpDetails); }