Ejemplo n.º 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();
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }