我想在自己的页面加入百度搜索
我是这样做的:
<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
  framespacing="0" frameborder="0" scrolling="no" width="200" height="30"
  src="http://unstat.baidu.com/bdun.bsc?tn=huajiachi&csid=102&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=0&bdas=0">
</iframe>
是否还缺少什么东西???
请您指教!!!

解决方案 »

  1.   

    把汉字encodeURL(汉字)Google的我试过,好像可以!
      

  2.   

    呵呵
    知道
    不过我试过了 
    google可以但是baidu当输入汉字时就会出现乱码!
    请指教
      

  3.   

    http://www.baidu.com/s?wd=中国&cl=3没问题啊。
      

  4.   

    我是这样做的
    建了个新页面
    在前台代码中:
    <body MS_POSITIONING="GridLayout">
       <form id="Form1" method="post" runat="server" target="result">
         <FONT face="宋体"></FONT>
           <TBODY>
     <tr>
       <td>
                <asp:TextBox ID="text1" Runat="server" Width="95px" Height="22"></asp:TextBox>
       <asp:Button ID="btn" Text="百度搜索" Runat="server" Width="72px" Height="24"></asp:Button>
       </td>
              </tr>
           </form>
    </body>
    后台的代码即Button的Click事件为:
    private void btn_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("http://www.baidu.com/s?wd="+text1.Text+"&cl=3");
    }
    请您指教
    谢谢
      

  5.   


    百度的编码是gb2312而web.config里的默认编码是
    <globalization 
         requestEncoding="utf-8" 
         responseEncoding="utf-8" 
    />后台代码为即直接讲页面编码变为gb2312:
    private void InitializeComponent()
    {   
    this.Init+=new EventHandler(baidu_Init)
    }
    private void baidu_Init(object sender,System.EventArgs e)
    {
       Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
    }
      

  6.   

    问题已解决
    解决方法为:
    data006(gavin)的方法
    谢谢大家的帮忙