使用文本框事件从数据库检索数据 [英] retrieving data from database using textbox events
本文介绍了使用文本框事件从数据库检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我使用链接到产品数据库的C#创建了一个Web应用程序应用程序.我正在使用自动完成扩展程序来检索仅在文本框中显示其下拉样式的产品ID.我想执行一个方法,该方法将检索链接到在选择产品ID时选择的产品ID的值.我已经查看了Keydown事件,但是按Enter键似乎不起作用.我正在使用Visual Studio 2010
预先谢谢你
问候
Hi
I''ve created an web application application using C# that is linked to a database of products. I am using the auto-complete extender to retrieve only the Product ID''s displaying them dropdown style on a textbox. I want to execute a method that will retrieve the values linked to the product ID selected on selection of a product ID. I''ve looked at the Keydown event but it does not seem to work when I press the enter key. I''m using visual studio 2010
Thank you in advance
regards
推荐答案
请检查
如何:检测何时按下Enter键 [ [C#]我如何检测在文本框中输入密钥? [捕获"Enter"键事件C#Windows应用程序 [ ^ ].
尝试这些解决方案.您肯定会找到答案.
Please check
How to: Detect When the Enter Key Pressed[^],
[C#] how do i detect enter key in a textbox ?[^]
and
Capturing "Enter" key event in C# windows application[^].
Try these solutions. You will find your answer for sure.
这篇关于使用文本框事件从数据库检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文