<ext:TriggerBox ID="MainDateTime2" Label="要求完成时间" EmptyText="请选择要求完成时间" Enabled="false"
TriggerIcon="Date" runat="server" ShowRedStar="True" Required="True" />
<script src="../res/my97/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
var tbxDateTime2ClientID = '<%= MainDateTime2.ClientID %>';
var tbxDateTime2 = F(tbxDateTime2ClientID);
tbxDateTime2.onTriggerClick = function () {
WdatePicker({
el: tbxDateTime2ClientID + '-inputEl',
dateFmt: 'yyyy-MM-dd HH:mm',
onpicked: function () {
// 确认选择后,执行触发器输入框的客户端验证
tbxDateTime2.validate();
}
});
};
</script>