Пример #1
0
    protected void imbUpdate_Click(object sender, EventArgs e)
    {
        List <LocalModuleInfo> lstLocalModuleTitle = new List <LocalModuleInfo>();

        foreach (GridViewRow gvRow in gdvLocalModuleTitle.Rows)
        {
            TextBox         txtLocalModuleTitle = (TextBox)gvRow.FindControl("txtLocalModuleTitle");
            LocalModuleInfo objInfo             = new LocalModuleInfo();
            objInfo.UserModuleID     = int.Parse(gdvLocalModuleTitle.DataKeys[int.Parse(gvRow.DataItemIndex.ToString())]["UserModuleID"].ToString());
            objInfo.LocalModuleTitle = txtLocalModuleTitle.Text;
            objInfo.CultureCode      = ddlAvailableLocales.SelectedValue.ToString();
            lstLocalModuleTitle.Add(objInfo);
        }

        try
        {
            LocaleController.AddUpdateLocalModuleTitle(lstLocalModuleTitle);
            LoadModuleTitles();
            SageFrame.Common.CacheHelper.Clear("MegaMenuNepInd");
            SageFrame.Common.CacheHelper.Clear("MegaMenuNepBuss");
            SageFrame.Common.CacheHelper.Clear("MegaMenuEngInd");
            SageFrame.Common.CacheHelper.Clear("MegaMenuEngBiz");
        }
        catch (Exception)
        {
            throw;
        }
    }