locked
Jquery for datepicker RRS feed

  • Question

  • User219039814 posted

    I have a datepicker as follows..

    <input type="text" class="form-control show_cal" id="datepicker" placeholder="Select Date" size="30">

    All the required JS files are attached..

    now my problem is getting the selected date's value from the input  box to the server end

    I dont want to remove the input type tag and attach the asp:textbox..

    can anyone help..

    Friday, April 27, 2018 5:58 AM

Answers

  • User-1780421697 posted

    Create asp.net control (hiddenfield), capture data in hiddenfield , it means when user select data capture the event of datepicker and save data in hidden field value. Now you have saved data in asp.net hidden field control you can access it in code behind file.

    If you need some business logic when date get selected then you can make an ajax call and get result as response.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 27, 2018 8:24 AM