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