|
-
Jan 20th, 2003, 05:26 AM
#1
Thread Starter
Addicted Member
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.
-
Jan 21st, 2003, 06:47 PM
#2
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|