<%@ Page
Inherits="System.Web.UI.MobileControls.MobilePage"
Language="VB"
%>
<%@ Register
TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile"
%>
<script runat="server" language="VB">
Sub calSelectChange(ByVal Sender as Object, _
ByVal E as EventArgs)
Dim i as Integer
lbl1.Text = "You selected:"
For i = 0 to Cal1.SelectedDates.Count - 1
lbl1.Text = lbl1.Text & " " _
& Cal1.SelectedDates(i).ToShortDateString()
Next
End Sub
</script>
<mobile:form
id="FirstPage"
runat="server">
<mobile:calendar
id="Cal1"
selectionmode="DayWeekMonth"
onselectionchanged="calSelectChange"
runat="server"
/>
<mobile:label
id="lbl1"
runat="server"
/>
</mobile:form>
|