Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能帮助我如何在asp.net中完成我的问题?我有一个服务器控件文本框和列表框。我想要发生的是,当我在文本框上键入内容时,在按键上,列表框的内容也会更新(实时),并将相应地过滤结果。如果文本框已被清除,列表框中的所有原始值都将返回。
使用 JQuery 作为文本框
$("#<%=txtboxID.ClientID %>").keydown(function (e) { e.preventDefault(); //your action });