全国统一热线:
028-86758058
18980748058
购买流程
付款方式
常见问题
在线提问
续租服务
购物车(
0
件)
用户名:
密 码:
记住
首 页
HOME
域名注册
DOMAIN
虚拟主机
WEB HOST
成品网站超市
AUTO Site
VPS主机
VPS SERVER
云 主 机
CLOUD HOST
租用托管
SERVER
海外主机
HK HOST
代理专区
AGENT
客服中心
SERVICE
站长教程
SERVICE
欢迎光临西部数据云计算中心,我们将竭诚为您提供最优质的服务!
中文域名
域名转入
域名转出
DNS管理
动态域名
获取域名证书
域名停放
域名过户
集群主机
双线主机
基本主机
港台主机
论坛主机
Linux主机
Vip合租主机
超G型主机
ASP.net主机
Java主机
智能建站主机
网店主机
美国主机
数据库
成品网站超市
智能建站主机
集群VPS主机
国内VPS主机
香港VPS主机
美国VPS主机
云主机介绍
云主机购买
服务器租用
主机托管
常见问题
香港主机
港台主机
美国主机
国内免备案
步骤流程
代理级别
代理合同
代理模式
代理优势
在线申请
产品列表
常见问题
代理商分布图
常见问题
有问必答
跟踪提问
购买流程
产品价格
付款方式
常用软件
网站备案
续租服务
汇款确认
相关文档
联系我们
域名资讯
主机资讯
行业动态
网页制作
php教程
mysql教程
域名资讯
云计算资讯
网络编程
您当前的位置:
首页
>
网络编程
>
Net教程
ASP.NET 调用百度搜索引擎的代码
时间:2015-01-29 来源:互联网 作者:佚名
百度
搜索引擎
提供了一段嵌入到页面中的代码
<form action="http://www.baidu.com/baidu" target="_blank">
<table><tr><td>
<input name=tn type=hidden value=baidu>
<input type=text name=word size=80>
<input type=hidden name=ie value="UTF-8">
<input type="submit" style="background:url(images/searchicon.gif) no-repeat; border:0; width:76px; height:26px; cursor:pointer" value="搜索">
</td></tr></table>
</form>
但在使用中由于我的页面时UTF-8的
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
所以我必须在百度给出的代码中加上这句
<input type=hidden name=ie value="UTF-8">
这个是第一部分,第二部分,我需要配置搜索条下的热门词汇,点击后直接进入搜索结果,代码如下
HtmlTableCell searchText = new HtmlTableCell();
searchText.InnerHtml = string.Format("<a href=\"http://www.baidu.com/baidu?tn=baidu&word={0}&ie=UTF-8\" target=\"_blank\">{0}</a>|", dt.Rows[i]["SearchText"].ToString());
tr_search.Cells.Add(searchText);
来顶一下
返回首页
推荐资讯
asp.net 下载文件时根据MIME类型自
引言 用WebClient下载远程资源时,经常会遇到类似这样的网址
asp.net 代码隐藏的编码模型
一.内联代码与代码隐藏 代码隐藏模型相对内联代码的优势: 1
相关文章
asp.net 图片的读写入库实现代码
Asp.net 下载功能的解决方案
asp.net用url重写URLReWriter实现任意二级域名 高级篇
asp.net 页面传值的几个方法
asp.net 下载文件时根据MIME类型自动判断保存文件的扩
asp.net Cookie跨域、虚拟目录等设置方法
ASP.NET、SharePoint中另存文件的长文件名被截断的原因
ASP.NET Web应用程序的安全解决方案浅析
asp.net+jquery Gridview的多行拖放, 以及跨控件拖放
asp.net用url重写URLReWriter实现任意二级域名 新
栏目更新
栏目热门
返回首页
关于我们
联系我们
付款方式
价格总览
资讯中心
友情链接
媒体关注
有问必答
投诉建议
网站备案
《中华人民共和国增值电信业务经营许可证》编号:川B2-20080058号
官方网址:
xibushuju.com
西部数据
Copyright © 2002~2015
天府快车
版权所有
电话总机:
028-86758058
(50线) 传真:
028-86758058