예제 #1
0
        protected void AllNews_Click(object sender, EventArgs e)
        {
            WebServices.Feeds service = new WebServices.Feeds();
            XmlDocument feed = service.GetAggregatedFeeds();

            Xml1.XPathNavigator = feed.CreateNavigator();
            Xml1.DataBind();
        }
예제 #2
0
        protected void SearchFilterFeed_Click(object sender, EventArgs e)
        {
            string filter = filterTextBox.Text;
            if (filter != null)
            {
                WebServices.Feeds service = new WebServices.Feeds();
                XmlDocument feed = service.GetAggregatedFeedsWithFilter(filter);

                Xml1.XPathNavigator = feed.CreateNavigator();
                Xml1.DataBind();
            }
        }
예제 #3
0
        protected void FilterFeed_Click(object sender, EventArgs e)
        {
            string filter = ((CommandEventArgs)e).CommandArgument.ToString();
            if (filter != null)
            {
                WebServices.Feeds service = new WebServices.Feeds();
                XmlDocument feed = service.GetAggregatedFeedsWithFilter(filter);

                Xml1.XPathNavigator = feed.CreateNavigator();
                Xml1.DataBind();
            }
        }