如何将重点放在asp:panel中的文本框上 [英] How set focus on textbox in asp:panel
本文介绍了如何将重点放在asp:panel中的文本框上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在自动回发后将焦点设置在文本框上。我的文本框在asp:面板中,那么如何将焦点设置在文本框
I want to set focus on textbox after auto postback. My textbox is in asp:panel so how can i set focus on textbox
推荐答案
参考:
MSDN:如何:重点关注ASP.NET Web服务器控件 [ ^ ]
MSDN:Page.SetFocus Method(Control) [ ^ ]
服务器端:
Refer:
MSDN: How to: Set Focus on ASP.NET Web Server Controls[^]
MSDN: Page.SetFocus Method (Control)[^]
Server side:
SetFocus(thisTextBox);
客户端:
Client side:
document.getElementById("thisTextBox").focus();
这篇关于如何将重点放在asp:panel中的文本框上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文