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. Calender Control In ASP.NET

Calender Control In ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
5 Posts 2 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.
  • V Offline
    V Offline
    varshavmane
    wrote on last edited by
    #1

    Can only one please tell me how to get Year Scroll on ASP Calender Control??? Please help its very URGENT. Thanks in Advance

    J 1 Reply Last reply
    0
    • V varshavmane

      Can only one please tell me how to get Year Scroll on ASP Calender Control??? Please help its very URGENT. Thanks in Advance

      J Offline
      J Offline
      Joshua Lunsford
      wrote on last edited by
      #2

      i would format a table around the calendar and place two linkbuttons on either side add have them add/subtract years from the cal object selected date and the onclick of those buttons change the selected date for the cal... sound ok?

      V 1 Reply Last reply
      0
      • J Joshua Lunsford

        i would format a table around the calendar and place two linkbuttons on either side add have them add/subtract years from the cal object selected date and the onclick of those buttons change the selected date for the cal... sound ok?

        V Offline
        V Offline
        varshavmane
        wrote on last edited by
        #3

        Thanks for the reply but can please give me a start as I am not able to know from where to start. Thanks.

        J 1 Reply Last reply
        0
        • V varshavmane

          Thanks for the reply but can please give me a start as I am not able to know from where to start. Thanks.

          J Offline
          J Offline
          Joshua Lunsford
          wrote on last edited by
          #4

          the most basic: in the aspx page: lastyear nextyear in the code behind: private void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) Calendar1.SelectedDate = DateTime.Now; } private void LinkButton1_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(-1); Calendar1.VisibleDate = Calendar1.SelectedDate; } private void LinkButton2_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(1); Calendar1.VisibleDate = Calendar1.SelectedDate; } -- modified at 18:31 Tuesday 20th June, 2006

          V 1 Reply Last reply
          0
          • J Joshua Lunsford

            the most basic: in the aspx page: lastyear nextyear in the code behind: private void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) Calendar1.SelectedDate = DateTime.Now; } private void LinkButton1_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(-1); Calendar1.VisibleDate = Calendar1.SelectedDate; } private void LinkButton2_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(1); Calendar1.VisibleDate = Calendar1.SelectedDate; } -- modified at 18:31 Tuesday 20th June, 2006

            V Offline
            V Offline
            varshavmane
            wrote on last edited by
            #5

            Thanks a lot.Its working now. Thanks again. Bye

            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