Hello,
I have a captcha problem.
it was working before net core (framework) template 1.1 and now it just appear for a second and disappear ( chrome and opera )
any idea ?
Controller
.........
Bitmap s_image = new Bitmap(160, 30);
Graphics s_graphic = Graphics.FromImage(s_image);
Font s_font = new Font("Arial", 16, FontStyle.Bold);
SolidBrush s_brush1 = new SolidBrush(Color.White);
HatchBrush s_brush2 = new HatchBrush(0, Color.White, Color.FromArgb(255, 51, 51));
s_graphic.FillRectangle(s_brush2, 0, 0, s_image.Width, s_image.Height);
s_graphic.DrawString(s_secword, s_font, s_brush1, new PointF(15, 2));
Response.ContentType = "image/gif";
s_image.Save(HttpContext.Response.Body, ImageFormat.Gif);
return View();
cshtml
.......
<img src="@Url.Action("captchax", "captcha", new { area = "project" }, null)" style="display: inline-block; " />
........