protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (!string.IsNullOrWhiteSpace(MediaPath))
         {
             MediaRepository repository = new MediaRepository();
             mediaUrl.Text = repository.GetMeduaUrlByAliasPath(MediaPath);
         }
     }
 }
Example #2
0
 private void SetDownloadImageUrl()
 {
     MediaRepository repository = new MediaRepository();
     DownloadImageUrl = repository.GetMeduaUrlByAliasPath("Images/DownloadSermonButton");
 }