Click or drag to resize

AccessibilityAltTextSet Method (LinkButton, String)

This method sets the "aria-label" attribute supported by most screen readers as text to be read aloud instead of the anchor's visible text. Screen readers read aloud any ALT text on images, but not on anchor tags. The .Net LinkButton is rendered as an anchor tag for which most screen readers will ignore the ALT text. http://www.w3.org/TR/wai-aria/states_and_properties#aria-label

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AltTextSet(
	this LinkButton btn,
	string text
)

Parameters

btn
Type: System.Web.UI.WebControlsLinkButton
The button for which to provide alternate text.
text
Type: SystemString
The alternate text value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LinkButton. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also