还要拖动啊?用ctrl-c , ctrl-v??

解决方案 »

  1.   

    在windows From中很好实现,在asp.net中只能用js了
      

  2.   

    提交后,
    TextBox2.Text = TextBox1.Text;
      

  3.   

    试了差不多二十分钟,请我吃饭哦!^_*<script>
      var start = false;
      function onSel(){
    var selection = document.selection.createRange();
            if (start){
        document.selecttest.dest.value= selection.text;
            }        start = false;
      }
      function startflag(){
       start  = true;
      }
    </script>
    <html>
     <form name="selecttest">
     <input type="text" name="abc" onselectstart="startflag()" onmouseup="onSel()">
     <input type="text" name="dest" readonly>
     </form>
    </html>
      

  4.   

    <HEAD>
    ...
    <script language="javascript">
    function docopy(){
        document.getElementById('TextBox1').value = document.getElementById('TextBox2').value
    }
    </script>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <INPUT id="TextBox1" style="Z-INDEX: 103; LEFT: 246px; POSITION: absolute; TOP: 76px" type="text" onclick="docopy()">
    <INPUT id="TextBox2" style="Z-INDEX: 103; LEFT: 246px; POSITION: absolute; TOP: 76px" type="text">
    </form>
    </body>
      

  5.   

    jiayuanliao(廖家远)能不能把
    <input type="text" name="abc" onselectstart="startflag()" onmouseup="onSel()">
    改成
    <asp:TextBox id="content" runat="server" TextMode="MultiLine"></asp:TextBox>
    因为你的功能就是我想要的,但我的控件是asp:TextBox!
    在此谢谢了~
      

  6.   

    jiayuanliao(廖家远)很感谢你~我用你的方法解决了~