Shawn Zhang's Programming Zone

软件,时代进步的推动者! 有事儿您Q我(Shawn)!♀飛雪傢銘♀的地盘欢迎您的到来!

导航

Asp.Net 获得焦点的方式如下列代码:

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

posted on 2008-03-25 12:26  Shawn Zhang  阅读(651)  评论(0编辑  收藏  举报