Exemplo n.º 1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            int count = 0;

            foreach (GridViewRow row in ExpenseGrid.Rows)
            {
                if (((CheckBox)row.FindControl("checkGrid")).Checked == true)
                {
                    expenseEntity.ExpenseId = Convert.ToInt32(ExpenseGrid.DataKeys[row.RowIndex].Values["ExpenseID"].ToString());
                    hdf1.Value = (expenseEntity.ExpenseId).ToString();
                    receiptBusiness.editRecord(expenseEntity);
                    ModalPopupExtender.Show();
                    hdf.Value                   = (expenseEntity.receiptE.ReceiptId).ToString();
                    txtAmount.Text              = (expenseEntity.receiptE.Amount).ToString();
                    txtComment.Text             = expenseEntity.receiptE.Comment;
                    txtDate.Text                = (Convert.ToDateTime(expenseEntity.receiptE.ReceiptDate)).ToString("dd/MM/yyyy");
                    dlCurrency.SelectedValue    = (expenseEntity.receiptE.CurrencyTypeId).ToString();
                    dlExpenseType.SelectedValue = (expenseEntity.receiptE.ExpenseTypeId).ToString();
                    receiptImage.ImageUrl       = "~/Receipt/" + expenseEntity.receiptE.ReceiptPath;
                    receiptImage.AlternateText  = expenseEntity.receiptE.ReceiptPath;

                    count++;
                }
            }
            if (count > 1)
            {
                ModalPopupExtender.Hide();
            }
        }
Exemplo n.º 2
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            ModalPopupExtender modal = DetailsView1.FindControl("ModalPopupExtender1") as ModalPopupExtender;
            Panel pnlObs             = DetailsView1.FindControl("Panel2") as Panel;

            pnlObs.Style["dislplay"] = "none";
            modal.Hide();
        }
Exemplo n.º 3
0
 protected void btnCancel_Click(object sender, ImageClickEventArgs e)
 {
     for (int icount = 0; icount < chklsttestassociated.Items.Count; icount++)
     {
         chklsttestassociated.Items[icount].Selected = false;
     }
     rbtlstconsumable.SelectedIndex = -1;
     ModalPopupExtender.Hide();
 }
Exemplo n.º 4
0
        protected void lbCloseHubDevices_Click(object sender, EventArgs e)
        {
            LinkButton ib = (LinkButton)sender;

            ModalPopupExtender mpeHubDevices = (ModalPopupExtender)ib.NamingContainer.FindControl("mpeHubDevices");

            mpeHubDevices.Hide();
            Session["modalshowing"] = "false";
        }
Exemplo n.º 5
0
        /// <summary>
        /// Closes the dialog box
        /// </summary>
        public void Hide()
        {
            if (OnHide != null)
            {
                OnHide();
            }

            ModalPopupExtender.Hide();
            RefreshUI();
            State = ShowState.Hide;
        }
Exemplo n.º 6
0
 private void UpdateModalState()
 {
     if (lblModalIdEquivalencia.Text != "")
     {
         ModalPopupExtender.Show();
     }
     else
     {
         ModalPopupExtender.Hide();
     }
 }
Exemplo n.º 7
0
    protected void HidePopUp()
    {
        hdf_PopUpVisible.Value = "false";
        ContentPlaceHolder MainContent = (ContentPlaceHolder)this.Master.FindControl("MainContent");
        ModalPopupExtender mpe         = (ModalPopupExtender)MainContent.FindControl(hdf_PopUp.Value);

        if (mpe != null)
        {
            mpe.Hide();
        }
    }
Exemplo n.º 8
0
        protected virtual void SetarModoPagina(ModosPagina modo)
        {
            try
            {
                this.ModoPagina = modo;
                Button btnExcluir = (Button)this.LocalizarControle("btnExcluirUC", this.Controls);
                //Button btnNovoCadastro = (Button)this.LocalizarControle("btnNovoCadastroUC", this.Controls);
                ProPanel pnlManutencao = (ProPanel)this.LocalizarControle("pnlManutencaoUC", this.Controls);
                //ProPanel pnlConsulta = (ProPanel)this.LocalizarControle("pnlConsultaUC",this.Controls);
                ProGridView        grdListagem = (ProGridView)this.LocalizarControle("grdListagemUC", this.Controls);
                ModalPopupExtender mpeUC       = (ModalPopupExtender)this.LocalizarControle("mpeUC", this.Controls);

                switch (modo)
                {
                case ModosPagina.Listar:
                    PopularGridView();
                    mpeUC.Hide();
                    break;

                case ModosPagina.Inserir:
                    pnlManutencao.Clear();
                    mpeUC.Show();
                    btnExcluir.Visible = false;
                    //btnNovoCadastro.Visible = false;
                    //pnlConsulta.Visible = false;
                    grdListagem.SelectedIndex = -1;
                    this.grdListagem_SelectedIndexChanged(this, EventArgs.Empty);
                    if (FocoInicial != null)
                    {
                        Focus(FocoInicial);
                    }
                    break;

                case ModosPagina.Alterar:
                    mpeUC.Show();
                    btnExcluir.Visible = true;
                    //btnNovoCadastro.Visible = true;
                    //pnlConsulta.Visible = false;
                    if (FocoInicial != null)
                    {
                        Focus(FocoInicial);
                    }
                    break;
                }
                PreencherIdPaiManutencao();
                BotaoNovoAtivo();
                VerificarPermissoes();
            }
            catch (Exception ex)
            {
                this.ExibirExcecao(ex);
            }
        }
Exemplo n.º 9
0
        protected void SaveButton_Click(object sender, System.EventArgs e)
        {
            if (Page.IsValid)
            {
                SaveManufacturer();
            }

            ModalPopupExtender.Hide();
            EditAjax.Update();
            ManufacturerGrid.DataBind();
            SearchAjax.Update();
        }
Exemplo n.º 10
0
        protected void SaveButton_Click(object sender, System.EventArgs e)
        {
            if (Page.IsValid)
            {
                // save the vendors
                SaveVendors();
            }

            ModalPopupExtender.Hide();
            VendorGrid.DataBind();
            EditAjax.Update();
        }
Exemplo n.º 11
0
        public void ShowModal(WACFormControl form, bool show)
        {
            ModalPopupExtender mpe = WACGlobal_Methods.FindControl <ModalPopupExtender>(form);

            if (mpe != null)
            {
                if (show)
                {
                    mpe.Show();
                    ModalDisplayed = true;
                }
                else
                {
                    mpe.Hide();
                    ModalDisplayed = false;
                }
            }
        }
Exemplo n.º 12
0
        protected void btnWrite_Click(object sender, EventArgs e)
        {
            string strsql = "Select * from Finger_Template where IsDeleted = 'false' and CardIssue= 'false' and EmployeeCD = '" + txtEmpCd.Text + "'";

            SqlDataAdapter da = new SqlDataAdapter(strsql, AccessController.m_connecton);
            DataTable      dt = new DataTable();

            da.Fill(dt);
            if (dt.Rows.Count == 0)
            {
                string someScript = "";
                string Message    = "";
                Message    = "Can not write on card,employee not enrolled or card is already issued.";
                someScript = "<script language='javascript'>alert('" + Message + "');</script>";
                Page.ClientScript.RegisterStartupScript(this.GetType(), "onload", someScript);
                return;
            }
            else
            {
                //ModalPopupExtender.Show();
                if (Session["MasterKey"] == null)
                {
                    ModalPopupExtender.Show();
                }
                else
                {
                    ModalPopupExtender.Hide();
                    if (IsConfirmNeeded)
                    {
                        StringBuilder javaScript = new StringBuilder();

                        string scriptKey = "ConfirmationScript";

                        javaScript.AppendFormat("var userConfirmation = window.confirm('{0}');\n", ConfirmMessage);

                        javaScript.Append("__doPostBack('UserConfirmationPostBack', userConfirmation);\n");


                        ClientScript.RegisterStartupScript(GetType(), scriptKey, javaScript.ToString(), true);
                    }
                }
            }
        }
Exemplo n.º 13
0
        /// <summary>
        /// Handle the PreRender event
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPreRender(EventArgs e)
        {
            //Check to see if we have a result value.  If so, then show it in the confirm dialog box.
            if (!string.IsNullOrEmpty(m_SubmitDialog.ResultText))
            {
                m_ResultLabel.Text        = m_SubmitDialog.ResultText;
                m_SubmitDialog.ResultText = string.Empty;
                m_SubmitDialog.ClearViewState();
                m_ResultDialog.Style["Display"] = "Inline";
                m_ResultPopup.Show();
            }
            else
            {
                m_ResultDialog.Style["Display"] = "None";
                m_ResultPopup.Hide();
            }

            base.OnPreRender(e);
        }
Exemplo n.º 14
0
    protected void submit_Click(object sender, EventArgs e)
    {
        SQL_utils sql = new SQL_utils();

        string layout_section = hid_layout_section.Value;
        string layout_dim     = hid_layout_dim.Value;
        string dim_index      = hid_dim_index.Value;


        string sqlcode = "";
        string ctlname = "";

        if (layout_dim == "section")
        {
            sqlcode = "update def.Tbl_Section set sectionheadertext = '" + Editor.Content + "' where tblpk= (select tblpk from def.Tbl where measureID = " +
                      ddlMeas.SelectedValue.ToString() + ") and layout_section=" + layout_section;
            ctlname = "section" + layout_section;
        }
        else if (layout_dim == "row")
        {
            sqlcode = "update def.Tbl_SectionRow set rowheadertext = '" + Editor.Content + "' where tblpk= (select tblpk from def.Tbl where measureID = " +
                      ddlMeas.SelectedValue.ToString() + ") and layout_section=" + layout_section + " and layout_row=" + dim_index;
            ctlname = "section" + layout_section + "_" + dim_index;
        }
        else if (layout_dim == "col")
        {
            sqlcode = "update def.Tbl_SectionCol set colheadertext = '" + Editor.Content + "' where tblpk= (select tblpk from def.Tbl where measureID = " +
                      ddlMeas.SelectedValue.ToString() + ") and layout_section=" + layout_section + " and layout_col=" + dim_index;
            ctlname = "section" + layout_section + "_" + dim_index;
        }

        sql.NonQuery_from_SQLstring(sqlcode);
        sql.Close();



        ModalPopupExtender.Hide();


        LoadLayout(ddlMeas.SelectedValue);
        panelDEMainBody.Update();
    }
Exemplo n.º 15
0
        protected void drpInventoryCoordinatorLoad_SelectedIndexChanged(object sender, EventArgs e)
        {
            System.Threading.Thread.Sleep(2000);

            if (drpInventoryCoordinatorLoad.SelectedIndex == 0)
            {
                ModalPopupExtender.Hide();
            }
            else if (new Guid(drpInventoryCoordinatorLoad.SelectedValue) == Guid.Empty)
            {
                PopulateStack(new Guid(drpInventoryCoordinatorLoad.SelectedValue));
                drpStackNo.Items.Insert(0, new ListItem("Select", string.Empty));
            }
            else if (CurrentGINModel.StackInfosList != null && CurrentGINModel.StackInfosList.Exists(s => s.StackID != new Guid(drpInventoryCoordinatorLoad.SelectedValue)))
            {
                ModalPopupExtender.TargetControlID = "drpInventoryCoordinatorLoad";
                ModalPopupExtender.Show();
            }
            else
            {
                PopulateStack(new Guid(drpInventoryCoordinatorLoad.SelectedValue));
                drpStackNo.Items.Insert(0, new ListItem("Select", string.Empty));
            }
        }
Exemplo n.º 16
0
 protected void btnSi_Click(object sender, EventArgs e)
 {
     ModalPopupExtender.Hide();
 }
Exemplo n.º 17
0
 public void Hide()
 {
     EnsureChildControls();
     Extender.Hide();
     UpdatePanel.Update();
 }
Exemplo n.º 18
0
 protected void CancelButton_Click(object sender, System.EventArgs e)
 {
     ModalPopupExtender.Hide();
 }
Exemplo n.º 19
0
    public void LoadControls(string commandname, string measID, string commandarg)
    {
        SQL_utils sql = new SQL_utils();

        sql.NonQuery_from_SQLstring("exec def.spUTIL_check_for_missing_flds " + ddlMeas.SelectedValue.ToString());

        if (commandname == "LoadLayout")
        {
            if (rblMode.SelectedValue == "Edit Layout")
            {
                LoadLayout(ddlMeas.SelectedValue);

                Grid1.Visible = true;
            }
            else
            {
                panelDEMainBody.Visible = false;
            }
            LoadFldtype_legend();

            LoadFields(measID);
        }

        else if (commandname == "InsertLayoutDimension")
        {
            List <SqlParameter> ps = new List <SqlParameter>();
            ps.Add(sql.CreateParam("measureID", measID.ToString(), "int"));
            ps.Add(sql.CreateParam("layout_section", hid_layout_section.Value, "int"));
            ps.Add(sql.CreateParam("layout_dim", hid_layout_dim.Value, "text"));
            ps.Add(sql.CreateParam("dim_index", hid_dim_index.Value, "int"));
            ps.Add(sql.CreateParam("beforeafter", commandarg, "text"));


            sql.NonQuery_from_ProcName("def.spIncrement_Layout_Dimension", ps);


            ModalPopupExtender.Hide();

            LoadLayout(ddlMeas.SelectedValue);
            panelDEMainBody.Update();


            LoadFields(measID);
        }

        else if (commandname == "DeleteLayoutDimension")
        {
            int flag = 0;

            if (flag == 0)
            {
                List <SqlParameter> ps = new List <SqlParameter>();

                ps.Add(sql.CreateParam("measureID", measID.ToString(), "int"));
                ps.Add(sql.CreateParam("layout_section", hid_layout_section.Value, "int"));
                ps.Add(sql.CreateParam("layout_dim", hid_layout_dim.Value, "text"));
                ps.Add(sql.CreateParam("dim_index", hid_dim_index.Value, "int"));

                sql.NonQuery_from_ProcName("def.spDelete_Layout_Dimension", ps);

                sql.Close();
                ModalPopupExtender.Hide();

                LoadLayout(ddlMeas.SelectedValue);
                panelDEMainBody.Update();
            }
        }



        else if (commandname == "UpdateWidth")
        {
            //create proc spLayout_Update_Width
            //(@measureID int, @sectionnum int, @rownum int, @colnum int, @width_label int, @width_box int)

            //string txt_sectionnum = poptxt1.Text;
            //string txt_rownum = txtRow.Text;
            //string txt_colnum = txtCol.Text;
            //string txt_width_label = txtWidth_label.Text;
            //string txt_width_box = txtWidth_box.Text;

            int flag = 0;
            //if (string.IsNullOrEmpty(txt_sectionnum)) flag++;
            //if (string.IsNullOrEmpty(txt_rownum)) flag++;
            //if (string.IsNullOrEmpty(txt_colnum)) flag++;
            //if (string.IsNullOrEmpty(txt_width_label) & string.IsNullOrEmpty(txt_width_box)) flag++;


            //if (string.IsNullOrEmpty(txt_width_label)) txt_width_label = "0";
            //if (string.IsNullOrEmpty(txt_width_box)) txt_width_box = "0";


            if (flag == 0)
            {
                List <SqlParameter> ps = new List <SqlParameter>();

                //set to -1 if invalid dimension entered.  A value of -1 in the sproc will retain the entered value and make no change.
                int width_label = ToInt(poptxtWidth_label_WHOLE.Text, -1);
                int width_box   = ToInt(poptxtWidth_box_WHOLE.Text, -1);

                ps.Add(sql.CreateParam("measureID", measID.ToString(), "int"));
                ps.Add(sql.CreateParam("layout_section", hid_layout_section.Value, "int"));
                ps.Add(sql.CreateParam("layout_dim", hid_layout_dim.Value, "text"));
                ps.Add(sql.CreateParam("dim_index", hid_dim_index.Value, "int"));
                ps.Add(sql.CreateParam("width_label", width_label.ToString(), "int"));
                ps.Add(sql.CreateParam("width_box", width_box.ToString(), "int"));


                sql.NonQuery_from_ProcName("def.spLayout_Update_Width", ps);

                ModalPopupExtender.Hide();

                LoadLayout(ddlMeas.SelectedValue);
                panelDEMainBody.Update();
            }
        }

        sql.Close();
    }
Exemplo n.º 20
0
 public void ChangeTemplateListCancelButton_Click(object sender, EventArgs e)
 {
     InitializeTemplateList();
     ModalPopupExtender.Hide();
 }
Exemplo n.º 21
0
 /// <summary>
 /// Hide the dialog box
 /// </summary>
 public void Hide()
 {
     _MPE.Hide();
 }
Exemplo n.º 22
0
 /// <summary>
 /// this method is used to close the modular popup
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnCancel_Click(object sender, ImageClickEventArgs e)
 {
     ModalPopupExtender.Hide();
 }
Exemplo n.º 23
0
 public void Hide()
 {
     _modalPopupExtender.Hide();
     _hiddenField.Value = "";
 }
Exemplo n.º 24
0
        private void SaveProduct()
        {
            // get a reference to the loaded product
            // this assists in file comparions between add/edit page
            Product product = _Product;

            // basic product information pane
            product.Name           = Name.Text;
            product.ManufacturerId = AlwaysConvert.ToInt(ManufacturerList.SelectedValue);
            product.Price          = AlwaysConvert.ToDecimal(Price.Text);
            product.ModelNumber    = ModelNumber.Text;
            product.MSRP           = AlwaysConvert.ToDecimal(Msrp.Text);
            product.Weight         = AlwaysConvert.ToDecimal(Weight.Text);
            product.CostOfGoods    = AlwaysConvert.ToDecimal(CostOfGoods.Text);
            product.GTIN           = Gtin.Text;
            product.Sku            = Sku.Text;
            product.IsFeatured     = IsFeatured.Checked;

            // descriptions
            product.Summary             = Summary.Text;
            product.Description         = Description.Text;
            product.ExtendedDescription = ExtendedDescription.Text;

            // shipping, tax, and inventory
            product.WarehouseId = AlwaysConvert.ToInt(Warehouse.SelectedValue);
            product.VendorId    = AlwaysConvert.ToInt(Vendor.SelectedValue);
            product.ShippableId = (byte)AlwaysConvert.ToInt(IsShippable.SelectedValue);
            product.Length      = AlwaysConvert.ToDecimal(Length.Text);
            product.Width       = AlwaysConvert.ToDecimal(Width.Text);
            product.Height      = AlwaysConvert.ToDecimal(Height.Text);
            product.TaxCodeId   = AlwaysConvert.ToInt(TaxCode.SelectedValue);
            if (CurrentInventoryMode.Visible)
            {
                product.InventoryModeId = AlwaysConvert.ToByte(CurrentInventoryMode.SelectedIndex);
                if (product.InventoryMode == InventoryMode.Product)
                {
                    product.InStock             = AlwaysConvert.ToInt(InStock.Text);
                    product.AvailabilityDate    = AvailabilityDate.SelectedDate;
                    product.InStockWarningLevel = AlwaysConvert.ToInt(LowStock.Text);
                    product.AllowBackorder      = BackOrder.Checked;
                }
                else if (product.InventoryMode == InventoryMode.Variant)
                {
                    product.AllowBackorder = BackOrder.Checked;
                }

                product.EnableRestockNotifications = EnableRestockNotifications.Checked;
            }

            // advanced settings
            product.WrapGroupId       = AlwaysConvert.ToInt(WrapGroup.SelectedValue);
            product.AllowReviews      = AllowReviewsPanel.Visible ? AllowReviews.Checked : true;
            product.Visibility        = (CatalogVisibility)Visibility.SelectedIndex;
            product.HidePrice         = HidePrice.Checked;
            product.Webpage           = WebpageDataSource.Load(AlwaysConvert.ToInt(DisplayPage.SelectedValue));
            product.IsProhibited      = IsProhibited.Checked;
            product.IsGiftCertificate = GiftCertificate.Checked;
            product.DisablePurchase   = DisablePurchase.Checked;
            product.UseVariablePrice  = UseVariablePrice.Checked;
            product.MinimumPrice      = AlwaysConvert.ToDecimal(MinPrice.Text);
            product.MaximumPrice      = AlwaysConvert.ToDecimal(MaxPrice.Text);
            product.HandlingCharges   = AlwaysConvert.ToDecimal(HandlingCharges.Text);
            product.MinQuantity       = AlwaysConvert.ToInt16(MinQuantity.Text);
            product.MaxQuantity       = AlwaysConvert.ToInt16(MaxQuantity.Text);
            product.HtmlHead          = HtmlHead.Text.Trim();
            product.SearchKeywords    = SearchKeywords.Text.Trim();
            _Product.EnableGroups     = AlwaysConvert.ToBool(EnableGroups.SelectedValue, false);
            _Product.ProductGroups.DeleteAll();
            foreach (ListItem item in ProductGroups.Items)
            {
                if (item.Selected)
                {
                    int          groupId = AlwaysConvert.ToInt(item.Value);
                    ProductGroup pg      = new ProductGroup(_Product, GroupDataSource.Load(groupId));
                    _Product.ProductGroups.Add(pg);
                }
            }

            // search engines and feeds
            product.CustomUrl = CustomUrl.Text;
            CustomUrlValidator.OriginalValue = _Product.CustomUrl;
            product.ExcludeFromFeed          = !IncludeInFeed.Checked;
            product.Title                 = ProductTitle.Text.Trim();
            product.MetaDescription       = MetaDescriptionValue.Text.Trim();
            product.MetaKeywords          = MetaKeywordsValue.Text.Trim();
            product.GoogleCategory        = GoogleCategory.Text;
            product.Condition             = Condition.SelectedValue;
            product.Gender                = Gender.SelectedValue;
            product.AgeGroup              = AgeGroup.SelectedValue;
            product.Color                 = Color.Text;
            product.Size                  = Size.Text;
            product.AdwordsGrouping       = AdwordsGrouping.Text;
            product.AdwordsLabels         = AdwordsLabels.Text;
            product.ExcludedDestination   = ExcludedDestination.SelectedValue;
            product.AdwordsRedirect       = AdwordsRedirect.Text;
            product.PublishFeedAsVariants = PublishAsVariants.Checked;

            // TAX CLOUD PRODUCT TIC
            if (trTIC.Visible && !string.IsNullOrEmpty(HiddenTIC.Value))
            {
                product.TIC = AlwaysConvert.ToInt(HiddenTIC.Value);
            }
            else
            {
                product.TIC = null;
            }

            // save product
            product.Save();
            ModalPopupExtender.Hide();
        }
Exemplo n.º 25
0
        protected void btnClose_Click(object sender, EventArgs e)
        {
            try
            {
                LinkButton         ib             = (LinkButton)sender;
                TextBox            tbPosition     = (TextBox)ib.NamingContainer.FindControl("tbPosition");
                TextBox            tbDisplayName  = (TextBox)ib.NamingContainer.FindControl("tbDisplayName");
                Label              lblPositionBad = (Label)ib.NamingContainer.FindControl("lblPositionBad");
                ModalPopupExtender mpeInfo        = (ModalPopupExtender)ib.NamingContainer.FindControl("mpeInfo");

                Wink.Shortcut item = Wink.Shortcut.getShortcutByID(ib.CommandArgument);

                bool savePosSuccess  = false;
                bool saveNameSuccess = false;

                if (item != null)
                {
                    //SAVE POSITION
                    try
                    {
                        Int32 pos = 9999;
                        if (string.IsNullOrWhiteSpace(tbPosition.Text))
                        {
                            savePosSuccess = true;
                        }
                        else if (Int32.TryParse(tbPosition.Text, out pos) && pos > 0 && pos < 1001)
                        {
                            List <string> existingList = new List <string>();
                            foreach (DataListItem dli in dlShortcuts.Items)
                            {
                                HiddenField hfShortcutID = (HiddenField)dli.FindControl("hfShortcutID");
                                existingList.Add(hfShortcutID.Value);
                            }
                            string newItem = item.id;

                            existingList.RemoveAll(s => s == newItem);
                            existingList.Insert(pos - 1, newItem);

                            foreach (string ID in existingList)
                            {
                                int position = existingList.IndexOf(ID) + 1;
                                Wink.Shortcut.setShortcutPosition(ID, position);
                            }

                            lblPositionBad.Visible = false;
                            savePosSuccess         = true;
                        }
                        else
                        {
                            lblPositionBad.Visible = true;
                        }
                    }
                    catch (Exception ex)
                    {
                        lblPositionBad.Visible = true;
                    }

                    //SAVE DISPLAY NAME
                    try
                    {
                        Wink.Shortcut.setShortcutDisplayName(item.id, tbDisplayName.Text);
                        saveNameSuccess = true;
                    }
                    catch (Exception ex)
                    {
                    }
                }

                if (saveNameSuccess && savePosSuccess)
                {
                    Session["modalshowing"] = "false";

                    mpeInfo.Hide();

                    BindData();
                }
                else
                {
                    mpeInfo.Show();
                }
            }
            catch (Exception ex)
            {
                throw; //EventLog.WriteEntry("WinkAtHome.Shortcuts.btnClose_Click", ex.Message, EventLogEntryType.Error);
            }
        }
Exemplo n.º 26
0
 /// <summary>
 /// this method is used to close the modular popup
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnCancel_Click(object sender, ImageClickEventArgs e)
 {
     ModalPopupExtender.Hide();
     Panel1.Style.Add(HtmlTextWriterStyle.Display, "none");
 }