急~TextBox传值到另一个TextBox里面(50分) 还要拖动啊?用ctrl-c , ctrl-v?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在windows From中很好实现,在asp.net中只能用js了 提交后,TextBox2.Text = TextBox1.Text; 试了差不多二十分钟,请我吃饭哦!^_*<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> <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> jiayuanliao(廖家远)能不能把<input type="text" name="abc" onselectstart="startflag()" onmouseup="onSel()">改成<asp:TextBox id="content" runat="server" TextMode="MultiLine"></asp:TextBox>因为你的功能就是我想要的,但我的控件是asp:TextBox!在此谢谢了~ jiayuanliao(廖家远)很感谢你~我用你的方法解决了~ 【求助】asp.net收取邮件,并且下载邮件里面的附件然后删除邮件。。 关于网站安全访问的问题 框架小问题 execl导入数据库问题 在框架页中怎样在子框架中刷新整个框架? 学习PETSHOP3的困惑 asp.net自动生成网站地图有些疑惑在线探讨 js文件操作,本人想用JS读取服务器端的一个文本文件,代码该如果写 用ajax的xmlhttp.send(data)向后台发送请求的时候;,后台没处理,data是个XML数据,是什么原因,如何得到data的值,找了些办法都没成功 datafrid 的按钮列如何加入事件代码? 问题:怎么设置水晶报表在IE中的位置 如何定义一个全局字符串?
TextBox2.Text = TextBox1.Text;
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>
...
<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>
<input type="text" name="abc" onselectstart="startflag()" onmouseup="onSel()">
改成
<asp:TextBox id="content" runat="server" TextMode="MultiLine"></asp:TextBox>
因为你的功能就是我想要的,但我的控件是asp:TextBox!
在此谢谢了~