Example #1
0
        public void LoadBusinessLicenseImg()
        {
            var code  = _request.QueryString["Code"].ToString();
            var bytes = _em.GetImgForCode(code);

            _response.BinaryWrite(bytes);
            _response.Flush();
            _response.End();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string code = Request.Params["Code"];

                var bytes = _em.GetImgForCode(code);
                Response.BinaryWrite(bytes);
                Response.Flush();
                Response.End();
            }
        }