在aspx.net中怎么在server端使光标定位在textbox中字符串的最后?

解决方案 »

  1.   

     textBox1.SelectionStart = this.textBox1.MaxLength - 1;
      

  2.   

    输错了.改为
         textBox1.SelectionStart = this.textBox1.SelectionLength - 1;
      

  3.   

    ....            textBox1.SelectionStart = this.textBox1.TextLength - 1;
      

  4.   

    但是我的textbox属性里面怎么没有你说的那个属性呢?
      

  5.   

      textBox1.SelectionStart = this.textBox1.SelectionLength - 1;
      

  6.   

    谢谢,可是我的textbox没有你说的那个SelectionStart属性啊
      

  7.   

    如何把光标定位到点击按钮操作之前的textbox上啊(假如我有好几个textbox)