示例#1
0
        public GetNewsFromRSS()
        {
            rssLink    = new string[1];
            rssLink[0] = "http://www.tempo.co/rss/terkini";

            RSSParser RP = new RSSParser(rssLink);

            NL = RP.getNews();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //loading berita
            string[] rssLink;
            rssLink    = new string[1];
            rssLink[0] = "http://www.tempo.co/rss/terkini";

            //parsing rss dan mendapatkan list of News
            RP = new RSSParser(rssLink);
            NL = RP.getNews();

            //inisialisasi
            contentHasilPencarian.Text = string.Empty;
        }