.NET Mobile Events

Describe .NET Mobile Events.

.NET mobile controls expose events which are device independent. They have an object model with programmable properties, methods and events.

Example:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"%>
<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<script runat="server">
string age;

private void AgeClick(Object sender, EventArgs e)
{
      age=text1.Text;
      ActiveForm=Form2;
}
private void Form2_Activate(Object sender, EventArgs e)
{
      message.Text="You are " + age + " years old";
}

</script>

<Mobile:Form id="form1" runat="server">
<Mobile:Label runat="server">Age?</Mobile:Label>
<Mobile:TextBox runat="server" id="text1" />
<Mobile:Command runat="server" OnClick="AgeClick" Text="Submit" />
</Mobile:Form>

<Mobile:Form id="form2" runat="server" OnActivate="Form2_Activate">
<Mobile:Label runat="server" id="message" />
</Mobile:Form>
.NET Mobile input controls
.NET Mobile input controls - .NET provides a variety of input controls to enable interaction form the user:...
Numeric attribute of the textbox control of .NET Mobile
When the numeric attribute of the textbox is set to true it accepts numeric numbers only.....
Password attribute of the textbox control of .NET Mobile
Password attribute in .Net Mobile - When the password attribute of the textbox is set to true, it acts as a password input box....
Post your comment