本文介绍了asp文本框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好, i有一个文本框控件,所以如何将此文本框控件的焦点设置为按钮,这样当我们在文本框中键入一些文本并按Enter键时,按钮点击事件自动触发 谢谢&问候 srishti
解决方案< ; asp:Panel id = panel1 runat = server DefaultButton = Button1 > < asp:TextBox id = textbox1 runat = server / > < asp:按钮 id = Button1 runat = server 文字 = 按钮1 / > < / asp:Panel >
hello, i have a text box control so how can be set focus of this text box control to button so that when we type some text in text box and press enter then button click event fired automatically thanks & regards srishti
解决方案 <asp:Panel id="panel1" runat="server" DefaultButton="Button1"> <asp:TextBox id="textbox1" runat="server" /> <asp:Button id="Button1" runat="server" Text="Button 1" /> </asp:Panel>更多推荐
asp.net文本框控件
发布评论