问个弱弱的问题,如何使每次刷新页面后的multiline的textbox滚动条处于最下方? 如题,在线等!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void TextBox1_TextChanged(object sender, System.EventArgs e){ this.TextBox1.SelectionStart = this.TextBox1.Text.Length; this.TextBox1.SelectionLength = 0; this.TextBox1.ScrollToCaret();} 不行啊,那是windows form中方法和属性,web.UI.WebControls.textbox没有这些属性和方法啊 演示代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><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" Height="70px" TextMode="MultiLine" Width="328px">[公告] 论坛性能升级啦,有意见来这里反馈![公告] CSDN 女程序员、女ITer、 集合报到帖![置顶] [交流:活跃气氛]VS.NET开发中的小技巧[置顶] .NET版版规(版本1.0)[置顶] SQLserver数据文件(MDF)的页面文件头结构剖析 </asp:TextBox> </div> </form> <script type="text/javascript"> function gotoEnd(){ var obj=document.getElementById("<%=TextBox1.ClientID %>"); var r =obj.createTextRange(); r.moveStart('character',obj.value.length); r.collapse(true); r.select(); } gotoEnd(); </script></body></html> 急啊,请专家指导!关于不扩展类System.Web.UI.Page,因此此处不允许。 请高手指点 owc11 的使用问题 asp.net ajax的速度问题????最后10分了! DropDownList赋值后出现的问题 请问如何将panel的高度设为1,我想将它做成线状,没成功 大家都来谈谈自己使用ASP.NET开发WEB应用的感受,顶者有分(两贴)…… 各位老兄,請問這是怎么囬事????? 一个SQL存储过程的问题??? 关于datagrid表头排序的问题~~~急~~在线等~~~ 关于Type.GetType(......) 括弧里的那句话是怎么来的啊? 如何用代码设置横向打印
{
this.TextBox1.SelectionStart = this.TextBox1.Text.Length;
this.TextBox1.SelectionLength = 0;
this.TextBox1.ScrollToCaret();
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><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" Height="70px" TextMode="MultiLine" Width="328px">[公告] 论坛性能升级啦,有意见来这里反馈!
[公告] CSDN 女程序员、女ITer、 集合报到帖!
[置顶] [交流:活跃气氛]VS.NET开发中的小技巧
[置顶] .NET版版规(版本1.0)
[置顶] SQLserver数据文件(MDF)的页面文件头结构剖析 </asp:TextBox>
</div>
</form>
<script type="text/javascript">
function gotoEnd(){
var obj=document.getElementById("<%=TextBox1.ClientID %>");
var r =obj.createTextRange();
r.moveStart('character',obj.value.length);
r.collapse(true);
r.select();
}
gotoEnd();
</script>
</body>
</html>