可以..用正则来判断textbox1的输入.
然后在输入完后用失去焦点来赋值给textbox2和textbox3.
textbox2和textbox3的值可以任意改变

解决方案 »

  1.   

    textbox1的输入用正则,然后onblur的时候给textbox2和textbox3赋值,textbox2和textbox3不用写什么事件就可以了
      

  2.   

    textbox1中只能输入15有英文数字混合的字符--用正则表达式可以实现输入后textbox2立即获取textbox1中前五位的值--调用Textchange 方法来触发String.SubString 来切割前面5位数
      

  3.   

    Textchange 最简单的方法就是在TextBox 里面的事件就有然后TextBox2.Text=TextBox1.Text.SubString(0,5)
      

  4.   

    1.就用上面都有提到的正则表达式
    2.
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            TextBox1.Attributes.Add("onpropertychange", "ChangeValue()") '这个就是调用js
        End Sub<script >
      function ChangeValue(){
        var Value1=document .getElementById ("TextBox1").value;
        
        document .getElementById ("TextBox2").value=Value1.substring(0,5);
        document .getElementById ("TextBox3").value=Value1 .substring(10,15);
    //这里就是你用来控制的js
        
      }
    </script>
      

  5.   

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
            <asp:TextBox ID="TextBox1" runat="server" onchange="checkLength()"></asp:TextBox>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        </div>
        </form>
    </body>
    </html>
    <script language="javascript" type="text/javascript">
        function checkLength()
        {
            var temp;
            var t1=document.getElementById("TextBox1").value;
            var t2=document.getElementById("TextBox2").value;
            var t3=document.getElementById("TextBox3").value;
            if(t1.length==15)
            {
                document.getElementById("TextBox2").value=t1.substring(0,5);
                document.getElementById("TextBox3").value=t1.substring(10,15);
            }
        }
    </script>具体细节自己处理
      

  6.   


    同意7楼的,用TextChange方法!