怎样在ASP页面中添加搜索引擎? 要在ASP网站上添加个搜索功能,搜索结果只是与本网站相关的信息,可不可以把Google直接放到我网站上使用?怎么弄呀? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ASP站内搜索,就像CSDN右上角的那个搜索一样的 可以直接用google东西,提交这个地址http://www.google.cn/search?hl=zh-CN&as_qdr=all&newwindow=1&q=关键词+site%3A你的网址&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq= 这是什么东西?怎么使用?我要在我的ASP主页上实现哦,还没发布到互联网上 <form action="http://www.baidu.com/baidu" target="_blank"><table bgcolor="#FFFFFF"><tr><td><input name=tn type=hidden value=baidu><a href="http://www.baidu.com/"><img src="http://img.baidu.com/img/logo-80px.gif" alt="Baidu" align="bottom" border="0"></a><input type=text name=word size=30><input type="submit" value="百度搜索"></td></tr></table></form>百度代码,试试 网上查找了很多关于google搜索的资料,貌似google并未提供相关组件下载但它提供了一个搜索web服务,URI为 http://api.google.com/GoogleSearch.wsdl 有了这个web服务我们就可以“堂而皇之”的使用google search了! 首先添加该web服务到项目中然后copy以下代码就OK了! com.google.api.GoogleSearchService server = new com.google.api.GoogleSearchService();2com.google.api.GoogleSearchResult result = null;34string result = server.doGoogleSearch("google搜索密钥", "关键字", 0, 10, false, "", true, "", "", "");5int cnt = result.endIndex - result.startIndex;6for (int i = 0; i < cnt; i )7...{8 Console.WriteLine(result.resultElements[i].snippet);9 Console.WriteLine(result.resultElements[i].URL);10} 求ASP.NET验证与授权的教程or案例 membership createuser后如何不自动登录 ckeditor 4.1.4如何 配置啊 js问题 鼠标进入图片按钮。如何改变图片按钮的图片?高手指教 格式化字符串的问题 [请问]在asp.net中如何调用javascript实现树型目录(并求实现树的javascript) 请教如何使验证码自动变化? 奇怪.DataRow是不是有这样的写法? 判断注册的问题???请教高手 重定向 保存状态在服务器上的问题?急救~!
提交这个地址http://www.google.cn/search?hl=zh-CN&as_qdr=all&newwindow=1&q=关键词+site%3A你的网址&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=
我要在我的ASP主页上实现哦,还没发布到互联网上
<table bgcolor="#FFFFFF"><tr><td>
<input name=tn type=hidden value=baidu>
<a href="http://www.baidu.com/"><img src="http://img.baidu.com/img/logo-80px.gif" alt="Baidu" align="bottom" border="0"></a>
<input type=text name=word size=30>
<input type="submit" value="百度搜索">
</td></tr></table>
</form>
百度代码,试试
com.google.api.GoogleSearchService server = new com.google.api.GoogleSearchService();
2com.google.api.GoogleSearchResult result = null;
3
4string result = server.doGoogleSearch("google搜索密钥", "关键字", 0, 10, false, "", true, "", "", "");
5int cnt = result.endIndex - result.startIndex;
6for (int i = 0; i < cnt; i )
7...{
8 Console.WriteLine(result.resultElements[i].snippet);
9 Console.WriteLine(result.resultElements[i].URL);
10}