我想一个接一个地搜索多个文本框 [英] I want to search with multiple text box one after another

查看:63
本文介绍了我想一个接一个地搜索多个文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如我有四个文本框用于搜索当我在任何文本框中输入值时,这将显示此值基础上的所有记录现在我在其中一个文本框中插入值,搜索将基于这两个值就像我用4文本框一样请给我解决方案

解决方案

更改你的查询....就像在Where条件中传递许多参数然后替换和用或然后它将采取您在文本框中输入的内容,它将根据该条件进行搜索....

我认为它会帮助你....

For example i have four text box for searching into when I enter value in any text box this will show all record on the base of this value now i insert value in one of rest text box the search will be on the base of these two value just like it i do with 4 textbox please give me solution

解决方案

Change your query....like in Where condition you are passing many parameters then Replace "and" with "or" then it will take what ever you entered in the Textbox it will search based on that condition....
I think It will Help you....


这篇关于我想一个接一个地搜索多个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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