Asp.Net 获得焦点的方式如下列代码: Asp.Net 获得焦点的方式如下列代码: Response.Write("<script> function window.onload(){document.all.TextBox1.focus();}</script>"); 这样,页面初始化时,焦点就在TextBox1上了。 Software, the promoters of the progress of the times!------Shawn