Exemplo n.º 1
0
    protected void RepPaymentProcessorsGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            //Generate LOGO
            var LogoPath = e.Row.Cells[2].Text;
            e.Row.Cells[2].Text = "<img src=\"" + UrlUtils.ConvertTildePathToImgPath(LogoPath) + "\" />";

            e.Row.Cells[3].Text = HttpUtility.HtmlDecode(e.Row.Cells[3].Text);
            e.Row.Cells[4].Text = HttpUtility.HtmlDecode(e.Row.Cells[4].Text);
        }
    }
Exemplo n.º 2
0
 protected void Verification_BannerUploadSubmit_Click(object sender, EventArgs e)
 {
     if (Page.IsValid && Verification_BannerUpload.HasFile)
     {
         VerificationTemporaryBanner.Save(AppSettings.FolderPaths.BannerAdvertImages);
         Verification_BannerUpload.Visible       = false;
         Verification_BannerUploadSubmit.Visible = false;
         Verification_BannerImage.Visible        = true;
         VerificationButton.Visible        = true;
         Verification_BannerImage.ImageUrl = UrlUtils.ConvertTildePathToImgPath(VerificationTemporaryBanner.Path);
         Verification_BannerUpload.Dispose();
     }
     else if (!Page.IsValid)
     {
         ErrorMessagePanel.Visible = true;
         ErrorMessage.Text         = String.Format(U5008.MAXSIZE, 2500, 1500);
     }
 }