c# - 需要在 Asp.net 中创建日期选择器?

标签 c# asp.net javascript

我需要在 asp.net 中创建一个日期选择器。 在网上找到了一些,但希望找到一些不同的东西。

谢谢

最佳答案

我建议你使用 jQueryUI datepicker 插件:

http://jqueryui.com/demos/datepicker/

这是 jQuery UI 网站的示例:

<script type="text/javascript">
    $(function() {
        $("#datepicker").datepicker();
    });
    </script>

<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div><!-- End demo -->
<div style="display: none;" class="demo-description">
<p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
</div><!-- End demo-description -->

关于c# - 需要在 Asp.net 中创建日期选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2160272/

相关文章:

asp.net - Dotnet core 2.0身份验证多模式身份cookie和jwt

javascript - 将图像从 SQL Server 插入到 Word 文档文件

javascript - 如何在asp.net中添加动态javascript警报框?

c# - Azure DevOps 测试数据库

c# - C#模板化结构: Cannot implicitly convert

C# 从一个配置文件中获取一个字符串以供多个项目使用

c# - 如何将 HTML 分配给隐藏代码中的字符串?

javascript - 异步 javascript 完成后加载网页并解析 html

javascript - 使用 jQuery 按 id 隐藏 div 在 Greasemonkey 中不起作用?

javascript - 从实例变量名中找出实例变量名