Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Adding control to Calendar Control

Adding control to Calendar Control

Scheduled Pinned Locked Moved ASP.NET
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chintan1979
    wrote on last edited by
    #1

    Hi Guys, I want to add a dropdownlist to the calendar control so that the user can jump to a particular year otherwise going to a year like 1970 is next to impossible. Please give me a code its very urgent. Thanks in advance !! Chintan

    A M S 3 Replies Last reply
    0
    • C chintan1979

      Hi Guys, I want to add a dropdownlist to the calendar control so that the user can jump to a particular year otherwise going to a year like 1970 is next to impossible. Please give me a code its very urgent. Thanks in advance !! Chintan

      A Offline
      A Offline
      Ashish Joshi
      wrote on last edited by
      #2

      Are you using visual studi calender control or third-party calenser control? Ashish Joshi

      A 1 Reply Last reply
      0
      • A Ashish Joshi

        Are you using visual studi calender control or third-party calenser control? Ashish Joshi

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Hi, Iam using the calendar control provided by ASP .Net.

        A 1 Reply Last reply
        0
        • A Anonymous

          Hi, Iam using the calendar control provided by ASP .Net.

          A Offline
          A Offline
          Ashish Joshi
          wrote on last edited by
          #4

          i have third party control which can solve your problem Ashish Joshi

          1 Reply Last reply
          0
          • C chintan1979

            Hi Guys, I want to add a dropdownlist to the calendar control so that the user can jump to a particular year otherwise going to a year like 1970 is next to impossible. Please give me a code its very urgent. Thanks in advance !! Chintan

            M Offline
            M Offline
            minhpc_bk
            wrote on last edited by
            #5

            Hi there, To add a dropdownlist to the Calendar control, you can provide an event handler for the DayRender[^] event, and add your logic to add the control in the handler. However, if you want to use the event of the dropdownlist, then that could be a problem since the Calendar is not well designed to add controls which raise the events. For example, when the page posts back, you'd use the Request object to get the post back data rather than use the dropdownlist object. Another way is to use a third party component, and it could be free or commercial, just try to do a good search. Here is an example: Javascript Calendar[^]

            1 Reply Last reply
            0
            • C chintan1979

              Hi Guys, I want to add a dropdownlist to the calendar control so that the user can jump to a particular year otherwise going to a year like 1970 is next to impossible. Please give me a code its very urgent. Thanks in advance !! Chintan

              S Offline
              S Offline
              Supajay
              wrote on last edited by
              #6

              Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Calendar1.VisibleDate = CDate(Me.year.SelectedValue & "/" & Me.month.SelectedValue & "/1") End Sub

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups