private void lnkOEmbed_Click(object sender, System.EventArgs e) { if (!(string.IsNullOrEmpty(this.txtOEmbed.Text))) { ProviderFormat ctlOEmbedProvider = new ProviderFormat(); if (ctlOEmbedProvider.IsUrlSupported(this.txtOEmbed.Text)) { this.lblOEmbedCheck.Text = string.Concat("<div class=\"dnnFormMessage dnnFormSuccess\">", this.GetLocalizedString("lblOEmbedCheck.Text.Supported"), "</div>"); } else { this.lblOEmbedCheck.Text = string.Concat("<div class=\"dnnFormMessage dnnFormWarning\">", this.GetLocalizedString("lblOEmbedCheck.Text.Unsupported"), "</div>"); } } else { this.lblOEmbedCheck.Text = string.Concat("<div class=\"dnnFormMessage dnnFormWarning\">", this.GetLocalizedString("lblOEmbedCheck.Text.EmptyString"), "</div>"); } }
private void lnkOEmbed_Click(object sender, EventArgs e) { if (!(string.IsNullOrEmpty(txtOEmbed.Text))) { ProviderFormat ctlOEmbedProvider = new ProviderFormat(); if (ctlOEmbedProvider.IsUrlSupported(txtOEmbed.Text)) { lblOEmbedCheck.Text = string.Format(MSG_SUCCESS_FORMAT, GetLocalizedString("lblOEmbedCheck.Text.Supported")); } else { lblOEmbedCheck.Text = string.Format(MSG_WARNING_FORMAT, GetLocalizedString("lblOEmbedCheck.Text.Unsupported")); } } else { lblOEmbedCheck.Text = string.Format(MSG_WARNING_FORMAT, GetLocalizedString("lblOEmbedCheck.Text.EmptyString")); } }