Link element in .NET Mobile with example

Explain <Mobile:Link> element .NET Mobile with example.

The <Mobile:Link> element enables a user to navigate between 2 forms in a page.

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

<Mobile:Form id="form1" runat="server">
       <Mobile:Label runat="server">Hello World1
       </Mobile:Label>
       <Mobile:Link runat="server" NavigateURL="#form2">Form2
       </Mobile:Link>
</Mobile:Form>

<Mobile:Form id="form2" runat="server">
       <Mobile:Label runat="server">Hello World2
       </Mobile:Label>
       <Mobile:Link runat="server" NavigateURL="#form1">Form1
       </Mobile:Link>
</Mobile:Form>
.NET Mobile controls features
.NET mobile controls features: Build web pages for many types of mobile devices instead of targeting specific ones......
.NET Mobile Events
.NET Mobile Events - .NET mobile controls expose events which are device independent. They have an object model with programmable properties, methods and events....
.NET Mobile input controls
.NET Mobile input controls - .NET provides a variety of input controls to enable interaction form the user:...
Post your comment