Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Uri    myUri = new Uri(Request.Url.AbsoluteUri);
            string param = HttpUtility.ParseQueryString(myUri.Query).Get("query");

            CrawlerManager.RunCrawlers(param, CrawlerManager.CrawlerMode.single);
            LoadData();
        }
Beispiel #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (TextBox1.Text != "")
            {
                switch (RadioButtonList1.SelectedItem.Text)
                {
                case "Wyszukaj wg Imienia":
                    CrawlerManager.RunCrawlers(TextBox1.Text, CrawlerManager.CrawlerMode.list);
                    break;

                case "Wyszukaj wg Dzieła":
                    CrawlerManager.RunCrawlers(TextBox1.Text, CrawlerManager.CrawlerMode.list);
                    break;

                case "Wyszukaj wg Stylu":
                    CrawlerManager.RunCrawlers(DropDownList1.Text, CrawlerManager.CrawlerMode.category);
                    break;
                }
                CrawlerManager.RunCrawlers("", CrawlerManager.CrawlerMode.images, 0, 11);
                Response.Redirect("SearchResults.aspx?page=1");
            }
        }