在母版页中设置焦点和默认按钮 [英] Set focus and default button in master page

查看:70
本文介绍了在母版页中设置焦点和默认按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用母版页时,我在哪里可以设置焦点并在.aspx页中设置默认按钮?

Where I can set focus and set the default button in .aspx page when using master page?

推荐答案

您可以设置defaultbutton属性.检查链接以获取更多信息:
http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx [ ^ ]

祝你好运!
You can set the defaultbutton property. Check the link for more info:
http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx[^]

Good luck!


ScriptManager.RegisterStartupScript(rnumPosenr,GetType(Page),"success",String.Format(((document.getElementById(''{0}''))).focus ();,rnumPosenr.ClientID),True)
ScriptManager.RegisterStartupScript(rnumPosenr, GetType(Page), "success", String.Format("(document.getElementById(''{0}'')).focus();", rnumPosenr.ClientID), True)


这篇关于在母版页中设置焦点和默认按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆