Results 1 to 2 of 2

Thread: Calender function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    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.

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    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
  •  



Click Here to Expand Forum to Full Width