在数据库中搜索文本框文本 [英] Search database for the textbox text

查看:108
本文介绍了在数据库中搜索文本框文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些代码,向我展示如何执行以下操作.当用户在文本框中输入名称并单击搜索按钮时,应在数据库中搜索该名称并将结果显示给用户.

I am looking for some code that shows me how to do the following. When the user enters a name in a textbox and the search button is clicked, the name should be searched in a database and the results shown to the user.

推荐答案

文章展示了如何使用ASP.NET(包括示例代码)完成操作:

http://www.aspnettutorials.com/tutorials/database/searchwithstring-csharp.aspx [ ^ ]
This article shows how it''s done with ASP.NET (sample code included):

http://www.aspnettutorials.com/tutorials/database/searchwithstring-csharp.aspx[^]


这篇关于在数据库中搜索文本框文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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