Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MediaBAL bal = new MediaBAL();
            List<MediaGroup> items = bal.GetMediaGroups();

            foreach (MediaGroup item in items)
            {
                Response.Write("Item ID: " + item.MediaID + "<br />");

                DataTable dt = bal.GetMediaGroupItems(item.MediaID);

                foreach (DataRow row in dt.Rows)
                {
                    Response.Write("FullDownLoadURL: " + row["FullDownLoadURL"].ToString() + "<br />");
                    if (checkURL(row["FullDownLoadURL"].ToString()))
                    {
                        Response.Write("URL GOOD" +  "<br />");
                        Response.Flush();

                    }
                    else
                    {
                        Response.Write("URL GOOD" + "<br />");
                        Response.Flush();
                    }
                }

            }
        }
Пример #2
0
        private void BindData()
        {
            //MediaGroupName.Text = Cache.Get("MediaGroupName").ToString();
                MediaBAL bal = new MediaBAL();
                DataTable items = bal.GetMediaGroupItems(itemid);

                if (items.Rows.Count > 0)
                {
                    lstMediaGroups.DataSource = items;
                    lstMediaGroups.DataBind();
                }
        }