protected void Page_Load(object sender, EventArgs e) { string idF = Request.QueryString["idF"]; string idFD = Request.QueryString["idFD"]; string mac = Request.QueryString["mac"]; string uid = Request.QueryString["uid"]; if (!string.IsNullOrEmpty(idF) && !string.IsNullOrEmpty(idFD) && !string.IsNullOrEmpty(mac) && !string.IsNullOrEmpty(uid)) { DnFolder.Del(idF, idFD, uid, mac); } }
protected void Page_Load(object sender, EventArgs e) { string fid = Request.QueryString["fid"]; string uid = Request.QueryString["uid"]; string mac = Request.QueryString["mac"]; string per = Request.QueryString["percent"]; if (!string.IsNullOrEmpty(fid) && !string.IsNullOrEmpty(uid) && !string.IsNullOrEmpty(mac) && !string.IsNullOrEmpty(per) ) { DnFolder.Update(fid, uid, mac, per); } }
protected void Page_Load(object sender, EventArgs e) { string uid = Request.QueryString["uid"]; string fdID = Request.QueryString["fdid"]; //xdb_folders.fd_id string mac = Request.QueryString["mac"]; string name = Request.QueryString["name"]; string pathLoc = Request.QueryString["pathLoc"]; //客户端使用的是encodeURIComponent编码, string cbk = Request.QueryString["callback"]; //应用于jsonp数据 if (string.IsNullOrEmpty(uid) || string.IsNullOrEmpty(mac) || string.IsNullOrEmpty(pathLoc) || string.IsNullOrEmpty(name)) { Response.Write("参数为空"); Response.End(); return; } DnFolderInf df = new DnFolderInf(); df.uid = int.Parse(uid); df.mac = mac; df.name = name; df.pathLoc = pathLoc; df.fdID = int.Parse(fdID); df.idSvr = DnFolder.Add(ref df); //添加到down_files表 df.idF = DnFile.Add(ref df); string json = JsonConvert.SerializeObject(df); json = HttpUtility.UrlEncode(json); //UrlEncode会将空格解析成+号 json = json.Replace("+", "%20"); json = cbk + "(" + json + ")";//返回jsonp格式数据。 Response.Write(json); }
protected void Page_Load(object sender, EventArgs e) { string fdID = Request.QueryString["fdID"]; //xdb_folders.fd_id string idSvr = Request.QueryString["idSvr"]; string cbk = Request.QueryString["callback"]; FolderInf fi = new FolderInf(); string json = string.Empty; if (!string.IsNullOrEmpty(idSvr)) { json = DnFolder.GetFolderData(int.Parse(idSvr), ref fi); } else if (!string.IsNullOrEmpty(fdID)) { json = DBFolder.GetFolderData(int.Parse(fdID), ref fi); } json = HttpUtility.UrlEncode(json); //UrlEncode会将空格解析成+号 json = json.Replace("+", "%20"); //Response.Write(cbk+"("+json+ ")"); Response.Write(json); }
protected void Page_Load(object sender, EventArgs e) { DnFile.Clear(); DnFolder.Clear(); }