Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            string mid = Request.QueryString["mid"];
            int    outmid;

            //Service oService = new Service();
            if (mid != null)
            {
                if (int.TryParse(mid, out outmid))
                {
                    sHTMLListaMedia = oSite.GetMedia(outmid, 1);
                }
            }

            //string filename = lnkfilepath.Text;
            //string Filpath = Server.MapPath("~/Attachments/" + filename);
            string Filpath = Server.MapPath(sHTMLListaMedia);

            DownLoad(Filpath);
        }