MobileControl.GetAttribute Method (String)


Retrieves the specified attribute property from the control. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

member GetAttribute : 
        name:string -> string


Type: System.String

A String that specifies the name of the server control attribute.

Return Value

Type: System.String

A String representing the value of the specified attribute; if no attribute with the specified name exists, then null.

The GetAttribute method returns attributes stored in the CustomAttributes property. If CustomAttributes is null, then GetAttribute will also return null.

.NET Framework
Available since 2.0

MobileControl Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Inside the ASP.NET Mobile Controls

Return to top