◆如果在服务器端进行输入验证后,要将焦点设置到某标签上,可用Page.RegisterStartupScript("SetFocus",s);的方法注册一段document.getElementById('"+Name+"').focus();脚本。
在服务器端将焦点设置到某标签
最新推荐文章于 2022-06-01 13:21:17 发布
本文介绍了一种在服务器端完成输入验证后,通过注册客户端脚本的方式将页面焦点设置到特定元素上的方法。使用Page.RegisterStartupScript实现,具体脚本为document.getElementById('"+Name+"').focus();。

1192

被折叠的 条评论
为什么被折叠?



