本文介绍了回发后,时间选择器Javascript在更新面板中不起作用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家,

在asp.net应用程序上工作.

我已使用JavaScript进行时间选择器控制.时间选择器文本框位于更新面板中.

它仅在第一次时有效,第二次在我单击任何按钮或回发时不起作用.

请帮帮我.


这是我的代码

Hi Expert,

Working on asp.net Application.

I have used javascript for time picker control.Timepicker textbox is in update panel.

It works fines only for first time.And second time it does not work when i click any button or postback.

Please help me.


Here is my code

<script type="text/javascript" language="javascript" src="Styles/Date Time Picker/prototype-1.js"></script>
<script type="text/javascript" language="javascript" src="Styles/Date Time Picker/behaviour.js"></script>
<script type="text/javascript" language="javascript" src="Styles/Date Time Picker/datepicker.js"></script>
<link rel="stylesheet" href="Styles/Date Time Picker/datepicker.css"/>
<script type="text/javascript" language="javascript" src="Styles/Date Time Picker/behaviors.js"></script>


<asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                       <ContentTemplate>
<div>
 <asp:TextBox ID="txtArrivalTime1" class="timepicker" runat="server"

                  Width="285px"></asp:TextBox>


</ContentTemplate>
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="chkAbv1" EventName="checkedchanged" />
     <asp:AsyncPostBackTrigger ControlID="chkAbv2" EventName="checkedchanged" />
     </Triggers>
     </asp:UpdatePanel>




请帮我解决这个问题.

感谢在副词&对不起,英语不佳




please help me to solve this problem.

Thanks In adv & Sorry for poor English

推荐答案


Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function(evt, args) {




使用它,您不需要



Using that, you shouldn''t need


这篇关于回发后,时间选择器Javascript在更新面板中不起作用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 13:21