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. how to select the calendar from another calendar when the date is being selected

how to select the calendar from another calendar when the date is being selected

Scheduled Pinned Locked Moved ASP.NET
helptutorial
4 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.
  • M Offline
    M Offline
    Mathew P V
    wrote on last edited by
    #1

    I am facing an output error. I am using a drop downlist which contains two items called "half day" and "full day" and two calendar controls. What i am in need is when i select the "full day" first it should show calendar1, after selecting the date in calendar1 it should display the next calendar control. then when i select the "half day". it should display only calendar1 and once clicking the date in the calendar1 the same should not be visible. Anyone kindly help me...

    modified on Saturday, May 30, 2009 6:40 AM

    B 1 Reply Last reply
    0
    • M Mathew P V

      I am facing an output error. I am using a drop downlist which contains two items called "half day" and "full day" and two calendar controls. What i am in need is when i select the "full day" first it should show calendar1, after selecting the date in calendar1 it should display the next calendar control. then when i select the "half day". it should display only calendar1 and once clicking the date in the calendar1 the same should not be visible. Anyone kindly help me...

      modified on Saturday, May 30, 2009 6:40 AM

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      First,enable autopostback of DropDownlist,set

      AutoPostBack=true;

      On

      SelectedIndexChange

      of dropdownlist set visible to controls.

      protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
      {
      Calendar1.Visible=true;
      }

      and in event

      SelectionChanged

      of Calendar1 check which items is selected from DropDownList

      private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
      {
      if(DropDownList1.Text =="full day")
      {
      Calendar2.Visible=true;
      }
      else
      {
      Calendar2.Visible=false;
      }

      }

      Hope this will help you.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      M 1 Reply Last reply
      0
      • B Blue_Boy

        First,enable autopostback of DropDownlist,set

        AutoPostBack=true;

        On

        SelectedIndexChange

        of dropdownlist set visible to controls.

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
        Calendar1.Visible=true;
        }

        and in event

        SelectionChanged

        of Calendar1 check which items is selected from DropDownList

        private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
        {
        if(DropDownList1.Text =="full day")
        {
        Calendar2.Visible=true;
        }
        else
        {
        Calendar2.Visible=false;
        }

        }

        Hope this will help you.


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

        M Offline
        M Offline
        Mathew P V
        wrote on last edited by
        #3

        thank you the mistake was enabling the auto post back

        B 1 Reply Last reply
        0
        • M Mathew P V

          thank you the mistake was enabling the auto post back

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          You are welcome.


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

          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