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