protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    string id = Request.QueryString[0].ToString();
                    if (!string.IsNullOrWhiteSpace(id))
                    {
                        List <string> scrnoa = new List <string>();
                        scrnoa = clsProcesCardlst.ProcesCardlst;

                        List <clsimgprop> datalist = new List <clsimgprop>();

                        clsimgprop data;

                        string clss = "hori";
                        if (id == "0")
                        {
                            clss = "hori";
                        }
                        else
                        {
                            for (int i = 0; i < scrnoa.Count; i++)
                            {
                                data     = new clsimgprop();
                                data.Img = MapPath("~/StdICard/" + HttpContext.Current.Session["SchoolId"].ToString() + "/School_" + scrnoa[i] + ".jpg");

                                System.Drawing.Image image = System.Drawing.Image.FromFile(data.Img);
                                image.RotateFlip(System.Drawing.RotateFlipType.Rotate90FlipNone);
                                image.Save(data.Img);
                            }
                        }



                        if (scrnoa != null)
                        {
                            for (int i = 0; i < scrnoa.Count; i++)
                            {
                                data     = new clsimgprop();
                                data.Img = "StdICard/" + HttpContext.Current.Session["SchoolId"].ToString() + "/School_" + scrnoa[i] + ".jpg";
                                data.cls = clss;
                                datalist.Add(data);
                            }
                            rpt1.DataSource = datalist;
                            rpt1.DataBind();
                        }
                    }
                }
                catch
                {
                    Response.Redirect("PrintDataSelect.aspx");
                }
            }
        }
        public static void DeleteCustomer(string id)
        {
            List <string> scrnoa = new List <string>();

            scrnoa = clsProcesCardlst.ProcesCardlst;
            clsimgprop data;

            if (id != "0")
            {
                for (int i = 0; i < scrnoa.Count; i++)
                {
                    data     = new clsimgprop();
                    data.Img = HostingEnvironment.MapPath("~/StdICard/" + HttpContext.Current.Session["SchoolId"].ToString() + "/School_" + scrnoa[i] + ".jpg");

                    System.Drawing.Image image = System.Drawing.Image.FromFile(data.Img);
                    image.RotateFlip(System.Drawing.RotateFlipType.Rotate270FlipNone);
                    image.Save(data.Img);
                }
            }
        }