2013年6月10日

winform 使用 webclient 上传

摘要: public void ProcessRequest(HttpContext context) { HttpPostedFile file = context.Request.Files[0]; file.SaveAs(context.Server.MapPath("~/uploadimages/") + file.FileName); } string strurl = "http://localhost/Provider/HandlerUpImage.ashx"; ... 阅读全文

posted @ 2013-06-10 09:26 gwazy 阅读(514) 评论(0) 推荐(0) 编辑

winform 调用 ashx

摘要: WebClient mywebclient = new WebClient(); byte[] cheklist = mywebclient.DownloadData(severurl + "/Provider/HandlerWinForm.ashx?deptid=" + Program.InstitutionID + "&method=insertadminlog"); string strcheck = Encoding.ASCII.GetString(cheklist); WebClient wc=new WebClient (); Str 阅读全文

posted @ 2013-06-10 09:08 gwazy 阅读(4364) 评论(2) 推荐(0) 编辑

webservice 使用

摘要: [WebMethod] public List<EntityAdmin_Dept> GetAdmin_DeptChild(string InstitutionID) { DataCondition<EntityAdmin_Dept.Field> conditionIn = new DataCondition<EntityAdmin_Dept.Field>(); conditionIn.Add("{0}='" + InstitutionID + "'", EntityAdmin_Dept.Field.De 阅读全文

posted @ 2013-06-10 09:04 gwazy 阅读(191) 评论(0) 推荐(0) 编辑

导航