RT

解决方案 »

  1.   

    <input type=text value="aaaa" onfocus="this.select();">
      

  2.   

    客户端代码,加一个onfocus事件
    function aa()
    {
     document.getElementById("txt1").select();
    }
      

  3.   

    <asp:TextBox id="TextBox1" runat="server" text=zb></asp:TextBox>
    为什么没有单击事件,怎样才能实现单击事件??????
      

  4.   

    in Page_Load function:
    TextBox1.Attributes.Add("onclick", "<script>alert('Click TextBox1');</script>");
      

  5.   

    是不是说要实现只有通过script脚本才可以????????????????????
      

  6.   

    有没有别的方法,不用script也可以实现的代码啊,?????????????????/////
      

  7.   

    自己实现一个WEB组件,script封装到其中
      

  8.   

    b/s 结构,浏览器端要达到楼主要求好像只能依靠script了。
      

  9.   

    <input type=text value="aaaa" onfocus="this.select();">
      

  10.   

    继承System.Web.UI.WebControls.TextBox类,把onfocus="this.select()"绑定,封装成服务器组建,就可以勒吧
      

  11.   

    <input type=text value="aaaa" onfocus="this.select();">