Broken background image in 1.5.43.0

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
Answered
0
0

Hi all,

after update from 1.5.38.0 to 1.5.43.0  background image in Wisej.Web.Button are broken.

On designer is showed correctly, but at run time background is empty. See attached project.

 

Roll back to 1.5.38.0 and all work fine.

Thanks for any help.

Attachment
  • You must to post comments
Best Answer
0
0

Thank you. It’s caused but this fix:

#1712 Property postback security vulnerability.

Properties that are used as a postback request need the [PostbackProperty] attribute to prevent a (tiny) security vulnerability. And it’s missing from BackgroundImage. #1747

You can use this as a temp workaround

 public class Button : Wisej.Web.Button
 {
     [Wisej.Base.PostbackProperty]
     public override Image BackgroundImage { get => base.BackgroundImage; set => base.BackgroundImage = value; }
 }

 

  • You must to post comments
0
0

Hi Luca,

Thank you!

  • You must to post comments
0
0

Hi Luca,

sorry i attached the sample again.

 

Note: i used an icon embedded into the Resources.resx

Attachment
  • You must to post comments
0
0

Please attach the test again, the zip got corrupted. I tried several combinations of images and background images in a button but cannot reproduce.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.