I had designed a calender to be displayed in the mobile phone which supports .Net framework. I also had hard time coding this topic as there is not much information available. Here is how I coded the application:
Code:
<%@ Page
Inherits=
"System.Web.UI.MobileControls.MobilePage"%>
<%@ Register
TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<script runat="server">
Sub CalChanged(sender as Object,e as EventArgs)
lab1.Text="The Selected option is:" & c1.SelectedDate
ActiveForm=f2
End Sub
</script>
<Mobile:Form id="form1" runat="server">
<Mobile:Calendar id="cal1"
OnSelectionChanged="CalChanged" runat="server" />
</Mobile:Form>
<Mobile:Form id="form2" runat="server">
<Mobile:Label id="l1" runat="server" />
</Mobile:Form>
Bookmarks