private void BindData() { LocaleStringResource localeStringResource = LocaleStringResourceManager.GetLocaleStringResourceById(this.LocaleStringResourceId); if (localeStringResource != null) { Language language = LanguageManager.GetLanguageById(localeStringResource.LanguageId); if (language != null) { lblLanguage.Text = Server.HtmlEncode(language.Name); } else { Response.Redirect("LocaleStringResources.aspx"); } this.txtResourceName.Text = localeStringResource.ResourceName; this.txtResourceValue.Text = localeStringResource.ResourceValue; } else { Language language = LanguageManager.GetLanguageById(this.LanguageId); if (language != null) { lblLanguage.Text = Server.HtmlEncode(language.Name); } else { Response.Redirect("LocaleStringResources.aspx"); } } }
private void BindData() { LocaleStringResource localeStringResource = LocaleStringResourceManager.GetLocaleStringResourceById(this.LocaleStringResourceId); if (localeStringResource != null) { Language language = LanguageManager.GetLanguageById(localeStringResource.LanguageId); if (language != null) { hlBackToResources.NavigateUrl = CommonHelper.GetStoreAdminLocation() + "LocaleStringResources.aspx?LanguageID=" + localeStringResource.LanguageId.ToString(); } } else { Response.Redirect("LocaleStringResources.aspx"); } }
public LocaleStringResource SaveInfo() { LocaleStringResource localeStringResource = LocaleStringResourceManager.GetLocaleStringResourceById(this.LocaleStringResourceId); if (localeStringResource != null) { localeStringResource = LocaleStringResourceManager.UpdateLocaleStringResource(localeStringResource.LocaleStringResourceId, localeStringResource.LanguageId, txtResourceName.Text, txtResourceValue.Text); } else { localeStringResource = LocaleStringResourceManager.InsertLocaleStringResource( this.LanguageId, txtResourceName.Text, txtResourceValue.Text); } return(localeStringResource); }
protected void DeleteButton_Click(object sender, EventArgs e) { try { LocaleStringResourceManager.DeleteLocaleStringResource(this.LocaleStringResourceId); LocaleStringResource localeStringResource = LocaleStringResourceManager.GetLocaleStringResourceById(this.LocaleStringResourceId); if (localeStringResource != null) { Response.Redirect("LocaleStringResources.aspx?LanguageID=" + localeStringResource.LanguageId.ToString()); } else { Response.Redirect("LocaleStringResources.aspx"); } } catch (Exception exc) { ProcessException(exc); } }