在ASP.net中将TextBox与Type = datetime一起使用 [英] Using TextBox with Type=datetime , in ASP.net

查看:61
本文介绍了在ASP.net中将TextBox与Type = datetime一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的文本框(V​​S 2010):

I have textbox like that (VS 2010):

<asp:TextBox type="date" ID="rSLA" runat="server" ></asp:TextBox>

,它工作正常,但是当我将类型更改为:datetime(因为我需要日期和小时)时,datepicker无法正常工作.为什么?

and it's working fine, but when I change the type to : datetime (cause I need date and hour) , the datepicker not working. why?

谢谢.

推荐答案

您正在使用哪个浏览器?我注意到在那上,Chrome浏览器不支持 datetime ,但是 datetime-local 是,也许可以解决您的问题.

Which browser are you using? I notice on there that for Chrome, datetime is unsupported but datetime-local is, maybe that solves your problem.

这篇关于在ASP.net中将TextBox与Type = datetime一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆