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. Get Jquery calandar date from textbox

Get Jquery calandar date from textbox

Scheduled Pinned Locked Moved ASP.NET
toolshelpjavascriptdatabasecom
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.
  • P Offline
    P Offline
    padmanabhan N
    wrote on last edited by
    #1

    Dear Experts, I am using Jquery calander control in my project. When i click any button the value in the textbox is cleared. Kindly help me to resolve this issue. I have to take the textbox value and save it in DB. <form id="form1" runat="server"> <asp:Label ID="lblDate" runat="server" Text="Date: "></asp:Label> <asp:TextBox ID="datepicker" runat="server" ReadOnly="true" ViewStateMode="Enabled"></asp:TextBox> <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" ></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></form> When i try to get value like string AA = TextBox1.Text; It just returns empty....... <div class="signature">Padmanabhan <u>My Articles:</u> <a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=5686247">Articles</a>[<a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=5686247" target="_blank" title="New Window">^</a>] <u>My latest Article:</u> <a href="http://www.codeproject.com/KB/office/Word\_Automation\_Part1.aspx">Word Automation</a>[<a href="http://www.codeproject.com/KB/office/Word\_Automation\_Part1.aspx" target="_blank" title="New Window">^</a>]</div></x-turndown>

    G 1 Reply Last reply
    0
    • P padmanabhan N

      Dear Experts, I am using Jquery calander control in my project. When i click any button the value in the textbox is cleared. Kindly help me to resolve this issue. I have to take the textbox value and save it in DB. <form id="form1" runat="server"> <asp:Label ID="lblDate" runat="server" Text="Date: "></asp:Label> <asp:TextBox ID="datepicker" runat="server" ReadOnly="true" ViewStateMode="Enabled"></asp:TextBox> <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" ></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></form> When i try to get value like string AA = TextBox1.Text; It just returns empty....... <div class="signature">Padmanabhan <u>My Articles:</u> <a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=5686247">Articles</a>[<a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=5686247" target="_blank" title="New Window">^</a>] <u>My latest Article:</u> <a href="http://www.codeproject.com/KB/office/Word\_Automation\_Part1.aspx">Word Automation</a>[<a href="http://www.codeproject.com/KB/office/Word\_Automation\_Part1.aspx" target="_blank" title="New Window">^</a>]</div></x-turndown>

      G Offline
      G Offline
      gavindon
      wrote on last edited by
      #2

      first of all, you need to use pre tags around your code. That will make it

      look like this and be far more readable to the people who might be willing to help.

      Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning. A graduation ceremony is an event where the commencement speaker tells thousands of students dressed in identical caps and gowns that 'individuality' is the key to success

      A 1 Reply Last reply
      0
      • G gavindon

        first of all, you need to use pre tags around your code. That will make it

        look like this and be far more readable to the people who might be willing to help.

        Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning. A graduation ceremony is an event where the commencement speaker tells thousands of students dressed in identical caps and gowns that 'individuality' is the key to success

        A Offline
        A Offline
        Asif Rehman
        wrote on last edited by
        #3

        Here is the correct way to write question: I am using Jquery calander control in my project. When i click any button the value in the textbox is cleared. Kindly help me to resolve this issue. I have to take the textbox value and save it in DB.

        <script type="text/javascript>
        $(function() {
        var pickerOpts = {
        showOn: "button",
        buttonImage: 'calendar.gif',
        buttonImageOnly: true,
        changeMonth: true,
        changeYear: true,
        showButtonPanel: true,
        dateFormat: 'dd-M-yy'
        };

        $("#datepicker").datepicker(pickerOpts);
        $.datepicker.setDefaults($.datepicker.regional['']);
        $("#datepicker").datepicker($.datepicker.regional['en']);
        $("#datepicker").val();
        });
        </script>

        <form id="form1" runat="server">
        <asp:Label ID="lblDate" runat="server" Text="Date: ">
        <asp:TextBox ID="datepicker" runat="server" ReadOnly="true" ViewStateMode="Enabled">
        <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" >
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></form>

        When i try to get value like string AA = TextBox1.Text; It just returns empty.......

        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