zoukankan      html  css  js  c++  java
  • ASP.NET通过代码给TextBox添加事件(点击显示日历)

    private void BindDate()
    {
    tbApplyStartDate.Attributes.Add("onclick", "new Calendar().show(this)");
    tbApplyEndTime.Attributes.Add("onclick", "new Calendar().show(this)");
    tbOfficialStartTime.Attributes.Add("onclick", "new Calendar().show(this)");
    tbOfficialEndTime.Attributes.Add("onclick", "new Calendar().show(this)");
    tbRealEndTime.Attributes.Add("onclick", "new Calendar().show(this)");
    tbCheckTime_zdb.Attributes.Add("onclick", "new Calendar().show(this)");
    tbCheckTime_zjb.Attributes.Add("onclick", "new Calendar().show(this)");
    tbApplyStartDate.ReadOnly = true;
    tbApplyEndTime.ReadOnly = true;
    tbOfficialStartTime.ReadOnly = true;
    tbOfficialEndTime.ReadOnly = true;
    tbRealEndTime.ReadOnly = true;
    tbCheckTime_zdb.ReadOnly = true;
    tbCheckTime_zjb.ReadOnly = true;
    }

    这个实例代码是给TextBox添加日历效果的

  • 相关阅读:
    vue-cli的npm run build的常见问题
    es6 Symbol
    es6 对象的扩展
    es7 函数绑定
    es6 箭头函数
    学习weex遇见非常奇怪的问题
    微信
    java面试题
    PHP面试题
    Android
  • 原文地址:https://www.cnblogs.com/stevenjson/p/3139722.html
Copyright © 2011-2022 走看看