摘要:两种封装方法:View Code #region 发送Http请求,获取返回结果 /// <summary> /// 发送http请求,获取响应( Send HttpRequest and Get HttpResponse) /// </summary> /// <param name="RequestUrl">请求地址</param> /// <param name="Params">http请求参数</param> /// <returns>响应内容</retu
阅读全文
摘要:简单的东东,网上参考借鉴的,什么也不说了,上代码。View Code using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Text;public partial class GetPrintContent : System.Web.UI.Page{ protected string ClientCode = string.Empty; prote...
阅读全文
摘要:以下代码补充,客户端web网页导入数据到sql 数据库时,涉及到的文件上传小知识。这里使用了web服务器文件上传控件,有些赘述,代码不够简洁,见谅。View Code 1 private void subInsert() 2 { 3 string Message = string.Empty; 4 string WebFilePath = string.Empty; 5 string LocalFilePath = string.Empty; 6 if (!string.IsNullOrEmpty(this.UpFile...
阅读全文