Ejemplo n.º 1
0
        void file_proc()
        {
            string fid    = Request.QueryString["id"];
            string uid    = Request.QueryString["uid"];
            string lenLoc = Request.QueryString["lenLoc"];
            string per    = Request.QueryString["perLoc"];
            string cbk    = Request.QueryString["callback"];

            //

            if (string.IsNullOrEmpty(uid) ||
                string.IsNullOrEmpty(fid) ||
                string.IsNullOrEmpty(cbk) ||
                string.IsNullOrEmpty(lenLoc))
            {
                Response.Write(cbk + "({\"value\":0})");
                Response.End();
                return;
            }

            DnFile db = new DnFile();

            db.process(fid, int.Parse(uid), lenLoc, per);

            PageTool.to_content(cbk + "({\"value\":1})");
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string fid    = Request.QueryString["id"];
            string uid    = Request.QueryString["uid"];
            string lenLoc = Request.QueryString["lenLoc"];
            string per    = Request.QueryString["perLoc"];
            string cbk    = Request.QueryString["callback"];

            //

            if (string.IsNullOrEmpty(uid) ||
                string.IsNullOrEmpty(fid) ||
                string.IsNullOrEmpty(cbk))
            {
                this.toContent(cbk + "({\"value\":0})", "application/json");
                return;
            }

            DBConfig cfg = new DBConfig();
            DnFile   db  = cfg.downF();

            db.process(fid, int.Parse(uid), lenLoc, per);

            this.toContent(cbk + "({\"value\":1})", "application/json");
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string fid     = Request.QueryString["id"];
            string uid     = Request.QueryString["uid"];
            string sizeLoc = Request.QueryString["sizeLoc"];
            string per     = Request.QueryString["perLoc"];
            string cbk     = Request.QueryString["callback"];

            per     = PathTool.url_decode(per);
            sizeLoc = PathTool.url_decode(sizeLoc);
            //
            if (string.IsNullOrEmpty(fid) ||
                string.IsNullOrEmpty(cbk) ||
                string.IsNullOrEmpty(sizeLoc))
            {
                Response.Write(cbk + "({\"value\":0})");
                Response.End();
                return;
            }

            DnFile db = new DnFile();

            db.process(fid, int.Parse(uid), sizeLoc, per);

            Response.Write(cbk + "({\"value\":1})");
        }