Beispiel #1
0
 private void button11_Click(object sender, EventArgs e)
 {
     if (this.rw_txt_key.Text.Trim() == "" || this.rw_txt_key.Text.Trim() == "宝贝关键词")
     {
         int num = (int)MessageBox.Show("关键字不能为空!");
     }
     else
     {
         this.rw_com_jd.Text = "阿里巴巴";
         taobaofrm taobaofrm = new taobaofrm();
         taobaofrm.Url = "http://s.1688.com/selloffer/offer_search.htm?keywords=" + sys.ulEncode(this.rw_txt_key.Text);
         taobaofrm.Url += "&from=marketSearch&mergeSameDesign=false&n=y&filt=y";
         if (taobaofrm.ShowDialog() == DialogResult.OK)
             this.strResultUrl = taobaofrm.Url;
     }
 }
Beispiel #2
0
 private void button9_Click(object sender, EventArgs e)
 {
     if (this.rw_txt_key.Text.Trim() == "" || this.rw_txt_key.Text.Trim() == "宝贝关键词")
     {
         int num = (int)MessageBox.Show("关键字不能为空!");
     }
     else
     {
         this.rw_com_jd.Text = "直通车";
         taobaofrm taobaofrm = new taobaofrm();
         string str = sys.ulEncode(this.rw_txt_key.Text);
         taobaofrm.Url = "http://s.taobao.com/search?tab=all&q=" + str;
         taobaofrm.Url += "&style=grid";
         if (taobaofrm.ShowDialog() == DialogResult.OK)
             this.strResultUrl = taobaofrm.Url;
     }
 }
Beispiel #3
0
        private void button10_Click(object sender, EventArgs e)
        {

            if (this.rw_txt_key.Text.Trim() == "" || this.rw_txt_key.Text.Trim() == "宝贝关键词")
            {
                int num = (int)MessageBox.Show("关键字不能为空!");
            }
            else
            {
                this.rw_com_jd.Text = "按京东";
                taobaofrm taobaofrm = new taobaofrm();
                string str = HttpUtility.UrlEncode(this.rw_txt_key.Text, Encoding.GetEncoding("UTF-8"));
                taobaofrm.Url = "http://search.jd.com/Search?keyword=" + str;
                taobaofrm.Url += "&enc=utf-8";
                if (taobaofrm.ShowDialog() == DialogResult.OK)
                    this.strResultUrl = taobaofrm.Url;
            }
        }
Beispiel #4
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     if (this.rw_txt_key.Text.Trim() == "" || this.rw_txt_key.Text.Trim() == "宝贝关键词")
     {
         int num = (int)MessageBox.Show("关键字不能为空!");
     }
     else
     {
         this.rw_com_jd.Text = "按类目";
         taobaofrm taobaofrm = new taobaofrm();
         string str = HttpUtility.UrlEncode(this.rw_txt_key.Text, Encoding.GetEncoding("UTF-8"));
         taobaofrm.Url = "http://list.taobao.com/itemlist/default.htm?&q=" + str;
         taobaofrm.Url += "&same_info=1&isnew=2&tid=0&_input_charset=utf-8";
         if (taobaofrm.ShowDialog() == DialogResult.OK)
             this.strResultUrl = taobaofrm.Url;
     }
 }