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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. calander control javascript to .net

calander control javascript to .net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascripthtmlsysadmin
3 Posts 3 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
    brettokumar
    wrote on last edited by
    #1

    hi i am using javascript for calander control in my application if my textbox is a html control the date will be assign while i am choosing data from my calander control but if my textbox is a server control the date will not be assign, display script error and the page is generate while i am choosing data from my calander control and also how to store values from html control to server control like: my html control is <input id="text1" name="txt_1"> how can i get this control value to a server (lable) control please help me

    with regards, bretto

    P G 2 Replies Last reply
    0
    • B brettokumar

      hi i am using javascript for calander control in my application if my textbox is a html control the date will be assign while i am choosing data from my calander control but if my textbox is a server control the date will not be assign, display script error and the page is generate while i am choosing data from my calander control and also how to store values from html control to server control like: my html control is <input id="text1" name="txt_1"> how can i get this control value to a server (lable) control please help me

      with regards, bretto

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      var value = document.getElementByID("LableID").value;

      Hope it will work.

      Parwej Ahamad R & D: REST services with WCF

      1 Reply Last reply
      0
      • B brettokumar

        hi i am using javascript for calander control in my application if my textbox is a html control the date will be assign while i am choosing data from my calander control but if my textbox is a server control the date will not be assign, display script error and the page is generate while i am choosing data from my calander control and also how to store values from html control to server control like: my html control is <input id="text1" name="txt_1"> how can i get this control value to a server (lable) control please help me

        with regards, bretto

        G Offline
        G Offline
        Gayani Devapriya
        wrote on last edited by
        #3

        Hi Bretto, Here is a suggestion. Why not you go for a Ajax Calender control since you want to assign the value to a server control ie: textbox. Here is the sample code...just try it and see it may be easy for you. If you already added the AjaxControlToolKit.dll in to your tool bar you may see a CalenderExtender. First drag a script manager to your page and then drag a CalenderExtender to your page. Now here the the code... Now once you click on the textbox a calender control will appear and its date will be set to the textbox control Another reason to go for Ajax Calender Control is because of its functionality, year wise, month wise traversal and lot more..just try and see.. Hope it will help... Thx, Gayani

        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