Calendar selected value changed event (VB.net)
<%@ Import namespace="System.Data" %> <%@ Import namespace="System.Data.SqlClient" %> <html> <head><title>Using the Calendar</title></head> <body> <h3>Using the Calendar</h3> <form runat="server"> <asp:Label id="lblSelectedDate" runat="server" /> <asp:Calendar id="calHire" runat="Server" SelectionMode = "DayWeek" OnSelectionChanged = "CalendarChange" /> </form> </body> </html> <script language="VB" runat="server"> Sub CalendarChange(Source As Object, E As EventArgs) lblSelectedDate.Text = calHire.SelectedDate End Sub </script>