You must Sign In to post a response.
  • Category: ASP.NET

    Pick time from textboxes

    i am having two textboxes named 'txtlogintime' and 'txtlogouttime' in a web forms( i want to pick the time(or show a timepicker) when i click on textbox.
  • #769235

    There are various ways to collect time picker and use it in application
    1. use bootstrap
    2. use JQuery time picker
    3. use community timepicker
    see below sample of bootstrap
    in aspx

    <div class="input-group bootstrap-timepicker timepicker">
    <asp:TextBox ID="txtTime" data-provide="timepicker" CssClass="form-control timepicker" runat="server"></asp:TextBox>
    <span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>

    in script

    $(function () {
    showInputs: false //Set showInputs to false

    hope it helps

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments