事件未在文本框中触发. [英] Event not firing in the textbox.?

查看:70
本文介绍了事件未在文本框中触发.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个带有日历扩展控件的文本框(txt1-StartDate,txt2-Enddate).

当我将焦点从第二个txt2中移出时,我想计算年和月.

当我从第二个文本框中移出焦点时需要使用什么事件.
因为,目前它什么也没发射.

参见代码

Hi,

I have two textboxes with calendar extendar control (txt1-StartDate,txt2-Enddate).

When i focus move out from the second txt2, i want to calculate the years and months.

What is the event need to use when i move out the foucus from the second text box.
because, currently it''s not firing anything.

see code

<td align="left" class="Labels" width="45%">
Project Start Date :
  <asp:

TextBox ID="txtStartdate" runat="server" class="controltext" Width="15%"> <AjxTool:

CalendarExtender ID="CalendarExtendar1" runat="server" Enabled="true" TargetControlID="txtStartdate" ¬

Format="dd-MMM-yyyy">    Week-Year :
  <asp:

Label ID="lblStWkYr" runat="server" class="controltext" Width="15%">
</td>
<td align="left" class="Labels" width="45%">
Project End Date :
<asp:

TextBox ID="txtEndDate" runat="server" class="controltext" Width="15%"> <AjxTool:

CalendarExtender ID="CalendarExtender2" runat="server" Enabled="true" TargetControlID="txtEndDate" ¬

Format="dd-MMM-yyyy">    Week-Year :
  <asp:

Label ID="lblEdWkYr" runat="server" class="controltext" Width="15%">
</td>

推荐答案


您可以在focusout事件上使用javascript,
问候,
shefeek
Hi,
you can use javascript on focusout event,
regards,
shefeek


这篇关于事件未在文本框中触发.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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