datepicker API

Peter_1985 2,486 Reputation points
2021-09-16T09:48:54.32+00:00

Hi,
Is there good example of datepicker API to be used well on a TextBox?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,154 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
    2021-09-17T02:13:54.487+00:00

    Hi @Peter_1985 ,

    From your description, it seems that your application is an Asp.net Webforms application, right?

    In this scenario, you could consider use the Bootstrap Datepicker or JQUery UI Datepicker. Please refer the following sample:

    Using Bootstrap Datepicker:

    132921-image.png

    The result as below: you can download the code from here.

    132922-1.gif

    Use JQuery UI DatePicker:

    132907-image.png

    The result as below: you can check the code from here.

    132897-2.gif

    Reference:

    Bootstrap Datepicker sample

    JQuery UI Datepicker


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion


2 additional answers

Sort by: Most helpful
  1. Peter_1985 2,486 Reputation points
    2021-09-20T03:52:07.593+00:00

    I put code like
    133424-4f.png

    but I do not see the date selector when hovering to that date field.


  2. Peter_1985 2,486 Reputation points
    2021-09-21T02:09:31.797+00:00

    As line below has been commented

    if (!IsPostBack)

    does it mean all codes within it, will be always triggered whenever we refresh the page, right?