Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null)
            {
                int accountid = int.Parse(Request.QueryString["ID"]);
                int imgID     = int.Parse(Request.QueryString["imgID"]);

                //Response.Write("<script>alert('"+accountid+" "+name+"')</script>");

                DataSet portImages = procedure.grabprotimages(accountid, imgID);

                byte[] imgData = (byte[])portImages.Tables[0].Rows[0]["portfolio_ImageData"];

                Response.Clear();
                Response.OutputStream.Write(imgData, 0, imgData.Length);
                //Response.BinaryWrite(imageData);

                Response.End();
            }
            else
            {
                Response.Write("<script>alert('You are trying to access an admin page. Please visit inkmap.com to get started')</script>");
            }
        }