Skip to content

Instantly share code, notes, and snippets.

@davecowart
Created February 24, 2011 20:36
Show Gist options
  • Save davecowart/842835 to your computer and use it in GitHub Desktop.
Save davecowart/842835 to your computer and use it in GitHub Desktop.
The code I added to FlashAsset.ascx.cs
if (va.AlternateAssociatedLibraryAsset != null)
{
if (!String.IsNullOrEmpty(va.AlternateAssociatedLibraryAsset.FileName))
{
if (va.AlternateAssociatedLibraryAsset.FileName.StartsWith("/images/", StringComparison.CurrentCultureIgnoreCase))
this.altfilename = va.AlternateAssociatedLibraryAsset.FileName;
else
this.altfilename = ApplicationSettings.AssetLibraryImageFolder + va.AlternateAssociatedLibraryAsset.FileName;
this.altlink = va.HrefLink;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment