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

calender

Scheduled Pinned Locked Moved ASP.NET
javascriptalgorithmsquestion
9 Posts 4 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.
  • B Offline
    B Offline
    baselanfouqa
    wrote on last edited by
    #1

    hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????

    K M R 3 Replies Last reply
    0
    • B baselanfouqa

      hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????

      K Offline
      K Offline
      keyur satyadev
      wrote on last edited by
      #2

      use ajax control calentdar.   you can get it from here. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

      Regards Keyur Satyadev

      1 Reply Last reply
      0
      • B baselanfouqa

        hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????

        M Offline
        M Offline
        Member_3259094
        wrote on last edited by
        #3

        check it A Simple Date Selector User Control in ASP.NET (JavaScript based)[^]

        B 1 Reply Last reply
        0
        • M Member_3259094

          check it A Simple Date Selector User Control in ASP.NET (JavaScript based)[^]

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

          still no luck, i have the following code :- function Calender() { var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value; var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px'); document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal; } now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back.... :( someone help

          K 1 Reply Last reply
          0
          • B baselanfouqa

            still no luck, i have the following code :- function Calender() { var date = document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value; var cal = window.showModalDialog('Calender.aspx', date, 'resizable:off;dialogheight:250px;dialogwidth:360px'); document.getElementById("ctl00_ContentPlaceHolder1_tbDateOfBirth").value = cal; } now on child page i added (var read = window.dialogarguments;) but know i dont know how to take value from calender and return it back.... :( someone help

            K Offline
            K Offline
            keyur satyadev
            wrote on last edited by
            #5

            whay you are not using the ajax control toolkit and calendar control of it. just you have to write 3 lines that enough. you don't have to make any coding.

            Regards Keyur Satyadev

            B 1 Reply Last reply
            0
            • B baselanfouqa

              hi alll i've been searching on the net and no one gave me what i want, i need a popup calendar in my page andi want it to return the value of the selected date into a textbox... could it be done without (page load), i tryed doing it in javascript and i managed to open but cant find a way to return a value from the calendar?????

              R Offline
              R Offline
              Russ T
              wrote on last edited by
              #6

              This DatePicker Control[^] is a really easy to use (free!) control. Just put it in an AJAX UpdatePanel and it should do want you need. Hope that helps.

              B 1 Reply Last reply
              0
              • K keyur satyadev

                whay you are not using the ajax control toolkit and calendar control of it. just you have to write 3 lines that enough. you don't have to make any coding.

                Regards Keyur Satyadev

                B Offline
                B Offline
                baselanfouqa
                wrote on last edited by
                #7

                how, am new at all this, and am trying to have knowledge about this so can u help ??

                K 1 Reply Last reply
                0
                • R Russ T

                  This DatePicker Control[^] is a really easy to use (free!) control. Just put it in an AJAX UpdatePanel and it should do want you need. Hope that helps.

                  B Offline
                  B Offline
                  baselanfouqa
                  wrote on last edited by
                  #8

                  no need to datepicker, i need code..... :(

                  1 Reply Last reply
                  0
                  • B baselanfouqa

                    how, am new at all this, and am trying to have knowledge about this so can u help ??

                    K Offline
                    K Offline
                    keyur satyadev
                    wrote on last edited by
                    #9

                    sorry for let response as i was left the office. download the ajax control toolkit and give referenct it into your project. put this line in aspx page at 2 line <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> now simillar to asp:Label you will get the cc1:CalendarExtender . for details of using you can also refer my previous reply and you will get that how to use it. its very simple. hope this is fine for you. let me know if you have ant doubts still.

                    Regards Keyur Satyadev

                    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