protected void grvMyHardware_SelectedIndexChanged(object sender, EventArgs e)
        {
            string strInternalNr = grvMyHardware.SelectedDataKey["internalNr"].ToString();
            var    picLoc        = new Models.Hardware(strInternalNr);

            picDetail.ImageUrl = "../UserUploads/Images/" + picLoc.PicLocation();
            var picModal = new JSUtility("hardwareImageModal");

            picModal.ModalShowUpdate(udpDetails);
        }
Esempio n. 2
0
        protected void grvAvailableHardwareType_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string strInternalNr = grvAvailableHardwareType.DataKeys[e.RowIndex]["internalNr"].ToString();
            var    picLoc        = new Models.Hardware(strInternalNr);

            picDetail.ImageUrl = "../UserUploads/Images/" + picLoc.PicLocation();
            var picModal = new JSUtility("hardwareImageModal");

            picModal.ModalShowUpdate(udpDetails);
        }
        protected void grvRequests_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string    strInternalNr  = grvRequests.DataKeys[e.RowIndex]["internalNr"].ToString();
            var       detailHardware = new Hardware(strInternalNr);
            DataTable dt             = detailHardware.ReturnDatatableHardwareFromInternal();

            grvDetail.DataSource = dt;
            grvDetail.DataBind();
            imgHardware.ImageUrl = "../UserUploads/Images/" + detailHardware.PicLocation();
            var detailModalShow = new JSUtility(modalHardware.ClientID);

            detailModalShow.ModalShowUpdate(udpDetails);
        }
        private void initializeSetupModal()
        {
            var modalInitialize = new JSUtility("initSetupModal");

            modalInitialize.ModalShowUpdate(udpInitialize);
        }