vs.net 2005:(1) web 页面上放上一个文本框TextBox1,一个按钮Button1.
(2) 设置按钮事件:
    protected void Button1_Click(object sender, EventArgs e)
    {
        string s1;        s1 = "http://www.google.cn/search?complete=1&hl=zh-CN&q=" + this.TextBox1.Text.ToString().Trim() + "&meta=";
        this.Response.Redirect(s1, true);
    }
这样就可以用我们自己的界面,根据用户在我们自己的文本框中输入的内容去搜索 Google.
Baidu 方法类似.

解决方案 »

  1.   

    把google首页和baidu首页的代码复制过来,改一下form中的action
      

  2.   

    百度:http://www.baidu.com/s?wd=搜索关键词
      

  3.   

    把google首页和baidu首页的代码复制过来,改一下form中的action很多网站都有的。
      

  4.   

    <form action="http://www.baidu.com/baidu" target="_blank">
    <table bgcolor="#FFFFFF"><tr><td>
    <input name=tn type=hidden value=baidu>
    <input type=text name=word size=30>
    <input type="submit" value="搜索">
    </td></tr></table>
    </form>