编码多个搜索按钮单击. [英] Coding on multiple search button click.

查看:57
本文介绍了编码多个搜索按钮单击.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了常规搜索按钮和引文搜索按钮以及另一个第三搜索按钮.在此搜索按钮单击中,我要搜索常规搜索按钮和引文搜索按钮.如果在搜索button_click上,我单击常规搜索按钮,则仅应打开常规搜索表;如果单击引文搜索按钮,则应隐藏常规搜索按钮表,并应打开其表.所有这些都必须在搜索按钮上单击.

I took general search button and citation search button and another 3rd search button. In this search button click, I want to search on general search button and citation search button. If on search button_click, I click on general search button then only general search table should open and if I click on citation search button, general search button table should hide and its table should open. All these things must be on search button click.

How do I do it?

推荐答案

您有两个选择:

1)您可以使用搜索提供程序的Ajax接口,并使用ASP.NET Ajax库或JavaScript库(如jQuery)通过异步调用来请求结果.在客户端实现结果获取逻辑.

2)使用表单中的输入,构造对相关引擎的Web请求,并在服务器端构建页面.

3)使用IFrame,并获取搜索提供商的公共URL.您可以在页面请求中构造URL并将其写出在页面中.客户端的浏览器将获取结果.

您最终要做什么取决于您正在使用的提供程序以及您在任何这些实现​​中的经验水平.

干杯.
You have a couple of options:

1) You can use the search providers'' Ajax interfaces and request results via async calls using either the ASP.NET Ajax libraries or a JavaScript library such as jQuery. Implement your result-fetching logic on the client side.

2) Using input from the form, construct web requests to the engines in question and build the pages server-side.

3) Use IFrames and do gets to the public URLs for the search providers. You can construct the URLs in the page request and write them out in the page. The clients'' browser will fetch the results.

What you end up doing will depend on the providers you''re working with and your level of experience in any of these implementations.

Cheers.


这篇关于编码多个搜索按钮单击.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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