-
Calender function
Hi there,
I need to produce a web application that has a date box that is updated when the user clicks on a date from a calander window, this is viewed in a new window that is opened when the user clicks on a button.
Please could someone show me the code, or a link some help
Thanks,
Tom.
-
Try this:
<vbcode>
<html>
<body>
<form runat="server">
<asp:calendar id="calEndar" runat="server" OnSelectionChanged="Calendar_SelectionChanged">
<asp:label id="lblDate" runat="server">
</form>
</body>
</html>
<script runat="server">
Sub Calendar_SelectionChanged(s as object, e as eventargs)
lblDate.text = "The selected date is: " & calEndar.selectedDate
End SUb
</script>
</vbcode>
HTH
MarkusJ