public void showFlash()
    {
        IList<NewsArticle> articleList = article.ListNewsArticleByRows("22",500);

        int count = 0;
        string pics = "";
        string links = "";
        string texts = "";
       
        for (int i = 0; i < articleList.Count; i++)
        {
            NewsArticle articleNew = (NewsArticle)articleList[i];
            if (articleNew.Content == "")
            {
                continue;
            }
            string content = ((NewsArticle)articleList[i]).Content;
            int firstIndex = content.LastIndexOf("src=");
            if (firstIndex < 0)
            {
                continue;
            }
            else
            {
                int lastIndex = content.LastIndexOf("jpg")+3;
                string fileName = content.Substring(firstIndex+5,lastIndex-(firstIndex+5));
                 //fileName = "images/a1.jpg|images/a2.jpg|images/a3.jpg|images/a4.jpg|images/a5.jpg";
                pics += fileName;
                links += "PhySituationDetails.aspx?;
        this.flashTD.InnerHtml= innerHtml;
              
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2022-01-03
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案