A command button designed for mobile web browsers.

Button control inherits Microsoft's Button documented here.

Namespace: FiftyOne.Framework.Mobile.Controls
Assembly: FiftyOne.Framework (in FiftyOne.Framework.dll) Version: 2.0.2.1 (2.0.2.1)

Syntax

C#
[ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.Button")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class Button : Button, IStyle, 
	IUrlResolutionService, IControlSize, ICssIncludeGroup
Visual Basic
<ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.Button")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class Button _
	Inherits Button _
	Implements IStyle, IUrlResolutionService, IControlSize, ICssIncludeGroup
Visual C++
[ToolboxBitmapAttribute(L"FiftyOne.Framework.Mobile.Controls.Button")]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class Button : public Button, 
	IStyle, IUrlResolutionService, IControlSize, ICssIncludeGroup

Examples

The following code example demonstrates how to create a Submit Button control that posts the Web page content back to the server.

CopyXML
<mob:Button id="Button1" Text="Submit" OnClick="SubmitBtn_Click" runat="server" />
<mob:Label id="Message1" runat="server" />
CopyC#
protected void SubmitBtn_Click(Object sender, EventArgs e)
{
    Message.Text="Hello World!!";
}

Inheritance Hierarchy

System..::..Object
  System.Web.UI..::..Control
    System.Web.UI.WebControls..::..WebControl
      System.Web.UI.WebControls..::..Button
        FiftyOne.Framework.Mobile.Controls..::..Button

See Also