带有jquery datepicker的文本框使用数据绑定获取空白 [英] textbox with jquery datepicker gets blank with databound

查看:50
本文介绍了带有jquery datepicker的文本框使用数据绑定获取空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当我试图将sql中的日期显示到链接到datepicker的文本框中时,文本框显示为空白。



我想这个问题可能与datepicker的默认日期有关。



如果我的猜测是正确的,任何人都可以建议如何使用VB代码在datepicker中设置日期。



提前付款



Atul

解决方案

感谢回复puneet。



我找到了自己的解决方案。



我用sql中的值创建了一个会话变量,并添加了一个jquery函数来将textbox链接到该变量。



 <   script  >  
var TargetDate ='<% =会话( TargetDate%> ';


(function(){


( 输入[ID

Hi All,

When I am trying to show date from sql into the textbox linked to datepicker, the textbox shows blank.

I guess the issue may be linked to the default date of datepicker.

If my guess is correct can anyone pls suggest how to set the date in datepicker with VB code.

Thanks in advance

Atul

解决方案

Thanks for the reply puneet.

I found the solution self.

I created a session variable with the value from sql and added a jquery function to link textbox to that variable.

<script>
       var TargetDate = '<%=Session("TargetDate")%>';


(function () {


("input[id


这篇关于带有jquery datepicker的文本框使用数据绑定获取空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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