将文本提供给datepicker时,它不会显示日期 [英] when giving text to datepicker it wont showing date

查看:60
本文介绍了将文本提供给datepicker时,它不会显示日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...
我正在使用JQuery日期选择器,如:

 $(' #<%= txtdate.ClientID%>').datepicker();
$(' #<%= txtdate.ClientID%>').datepicker(' 选项',{dateFormat:'  dd/mm/yy'}); 


在按钮上单击我正在尝试从数据库中获取日期并将其插入文本框
像这样:并确定日期会到数据读取器中

 txtdate.Text = dr [" ].ToString() ; 


但是它不会在文本框中显示日期.有人可以帮我吗?

在此先感谢

解决方案

(' #<% = txtdate.ClientID%>').datepicker();


(' ' ' dd/mm/yy'}); pre>
在按钮上单击我正在尝试从数据库中获取日期并将其插入文本框
像这样:并确定日期即将到来的数据读取器

 txtdate.Text = dr [" ].ToString() ; 


但是它不会在文本框中显示日期.有人可以帮我吗?

预先感谢


您是否已在调试器下运行该站点以确保数据不为空?


hi all...
I am using JQuery date picker like:

$('#<%= txtdate.ClientID %>').datepicker();
$('#<%= txtdate.ClientID %>').datepicker('option',{dateFormat:'dd/mm/yy'});


On button click I am trying to fetch date from database and insert into text box
like this: and am sure date coming to data reader

txtdate.Text = dr["date"].ToString();


But it won''t show the date in the text box. Can any one help me please?

Thanks in advance

解决方案

('#<%= txtdate.ClientID %>').datepicker();


('#<%= txtdate.ClientID %>').datepicker('option',{dateFormat:'dd/mm/yy'});


On button click I am trying to fetch date from database and insert into text box
like this: and am sure date coming to data reader

txtdate.Text = dr["date"].ToString();


But it won''t show the date in the text box. Can any one help me please?

Thanks in advance


Have you run the site under the debugger to ensure that the data isn''t null?


这篇关于将文本提供给datepicker时,它不会显示日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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