做个函数,用javascript的keydown判断执行

解决方案 »

  1.   

    在CltUnitSel的TextChanged事件里调用ImgCltUnitsSel的Click事件这么调用
    private void CltUnitSel_TextChanged(object sender, System.EventArgs e)
    {
        ImgCltUnitsSel_Click(sender,e);
    }
      

  2.   

    你在textbox的textchange事件里写代码试试。
    如果要是用鼠标离开的事件。那么就只好用js了。
      

  3.   

    to: mummy_zc
    重载出错,
    this.CltUnitSel.TextChanged += new System.EventHandler(this.CltUnitSel_TextChanged);
    this.ImgCltUnitSel.Click += new System.Web.UI.ImageClickEventHandler(this.ImgCltUnitSel_Click);
    ===========================================================
    private void CltUnitSel_TextChanged(object sender, System.EventArgs e)
    {
    ..............//这里无法传递参数;
    }
      

  4.   

    问题仍未解决,大家还得帮我
    如果用javascript的话,具体如何写法呢