Pop-up calendar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kyla
    New Member
    • Dec 2009
    • 3

    Pop-up calendar

    Hi, can anyone show me samples or guide me to do a pop-up calendar after I click a button. The pop-up calendar is for the user to select their date of birth, so I would like it to customize the calendar also. And for my website I have master page, so I can't add javascript at the <head> section right? Please help, need it in VB.NET language.
    Thanks
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Sounds like a DateTimePicker component from the toolbox.
    There are various options on how it should look, including a calendar.

    Comment

    • kyla
      New Member
      • Dec 2009
      • 3

      #3
      I dont have a DateTime picker component from the toolbox. I did a simple on click button calendar. But the calendar refresh alot of time if i go to different months. So, my teacher was suggesting me to do use a javascript popup calendar in asp.net. But I read about it online and found that there are problems implementing when there is a master page. So, I need some guide or sample codes. Thanks

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Bytes has a policy regarding assisting students with their homework.

        The short version is that the volunteers here can't help you with schoolwork.
        A) We don't know what material you have and have not learned in class.
        B) We don't know the guidelines you must follow.
        C) In the long run giving you the answers actually short changes your education.

        Comment

        • kyla
          New Member
          • Dec 2009
          • 3

          #5
          I did my basic popup calendar, now I need to implement javascript which I have no idea about it. I didn't ask for answers, I asked for guide lines when importing javascript into one of the content page when I have a master page.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            There are a bunch of JavaScript controls that will let you do this.
            There is the calender control offered by the Ajax Control Toolkit. Or you could use the Calendar plugin provided by JQuery (for some reason the demo wont work for me.....but that's not to say that JQuery isn't an extremely powerful JavaScript framework with tons of awesome components)

            -Frinny

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              You can add JavaScript to your <head> section, but you should consider the impact that it has on your site.

              Say you have a lot of JavaScript, or even a JavaScript function that does some fairly heavy processing. If you put it in your <head> section then it will have to be interpreted/compiled before your page is loaded. This could make your page very slow to appear. If you place the JavaScript at the bottom then your page's content will load first...making your page appear to load faster.

              That being said, sometimes you have to put JavaScript in the <head> section. If your JavaScript function is called during the window.load event then it can't be within the <body> of the page...it has to be in the <head> in order to be called during the onload event.

              Also, if you're using external JavaScript resources then you have to include them in your <head> section.

              -Frinny

              Comment

              Working...