The title says it all, really.
I’ve found theImage.GenerateEmptyAlternateText property on the ASP.NET Image control and now I’m wondering if there’s any difference in setting
<asp:Image GenerateEmptyAlternateText="True" /> and <asp:Image AlternateText="" />?
Turns out setting AlternateText=”” doesn’t work to set an empty alt text, if it set to an empty string, it gets omitted when the image HTML is rendered. To get alt=””, one has to use the GenerateEmptyAlternateText property.
See below from “Accessibility in Visual Studio 2010 and ASP.NET 4“