日历控件不显示 [英] Calender control not displaying

查看:76
本文介绍了日历控件不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<div class="col-sm-2">
              <div class="form-group">
                <label for="checkin">Check-in</label>
                <div class="popover-icon" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="right" data-content="Check-In is from 11:00"> <i class="fa fa-info-circle fa-lg"> </i> </div>
                <i class="fa fa-calendar infield"></i>
                <input name="checkin" type="text" id="checkin"  value="" class="form-control" placeholder="Check-in"/>
              </div>
            </div>
            <div class="col-sm-2">
              <div class="form-group">
                <label for="checkout">Check-out</label>
                <div class="popover-icon" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="right" data-content="Check-out is from 12:00"> <i class="fa fa-info-circle fa-lg"> </i> </div>
                <i class="fa fa-calendar infield"></i>
                <input name="checkout" type="text" id="checkout" runat="server" value="" class="form-control" placeholder="Check-out"/>
              </div>
            </div>







当我使用runat =server时,日历不会显示。

请告诉我有什么问题?




When I use runat="server" the calender are not display .
Please tell me what is problem?

推荐答案

什么时候使用runat?问题可能是因为添加runat正在更改控件的ID,并且您的客户端可能使用标记中列出的ID附加到您的控件(例如
When you use runat on what? The problem is probably because adding runat is changing the ids of your controls and your client is probably attaching to your controls using the id that is listed in your markup (eg


(#checkout )),但.net更改了服务器控件的ID,因此javascript无法找到您的控件(查看源代码并尝试查找ID为checkout的元素)。



这是很多假设,但你还没有真正提供足够的相关信息。我们无法运行您的代码,您需要调试它以查看代码无法正常工作的原因,我们只能猜测。
("#checkout")), but .net changes the ids of server controls so the javascript can't find your control (view the source and try to find an element with the id of checkout).

That's a lot of assumptions but you haven't really supplied enough relevant information. We can't run your code, you'll need to debug it to see why your code isn't working, we can only make guesses.


这篇关于日历控件不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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