1.找到要操作的excel数据表 Server.MapPath("/xx.xlsx"); 2.定义Worksheet对象 Worksheet objExcelWorkSheet; 3.判断文件是否存在,如果存在则删除重新创建 FileInfo newFile = new FileInfo(fileP Read More
posted @ 2019-07-16 16:54 释怀lhf Views(1119) Comments(0) Diggs(0)
问题:页面打开时,由于缓存的存在,刚刚更新的数据有时无法在页面得到刷新,当这个页面作为模式窗口被打开时问题更为明显, 如何将缓存清掉? 解决办法:html页面加如下代码: <meta http-equiv="Content-Type" content="text/html; charset=utf- Read More
posted @ 2019-01-24 11:47 释怀lhf Views(3927) Comments(0) Diggs(0)
前台 aspx <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate> Read More
posted @ 2018-11-30 11:27 释怀lhf Views(664) Comments(0) Diggs(0)
if (System.IO.File.Exists(Server.MapPath("/images/qrcode/vpopc_qrcode/GZ/") + zhbh + ".jpg")) { gzewm.Attributes.Add("src", "/images/qrcode/vpopc_qrco Read More
posted @ 2018-11-10 14:40 释怀lhf Views(363) Comments(0) Diggs(0)
public ActionResult GetEncodeCkxcy(string zhbh1) { string Img = ""; Bitmap bt; string success = "true"; string enCodeString = "http://xxxx.htm?zhbh=" Read More
posted @ 2018-08-16 08:57 释怀lhf Views(121) Comments(0) Diggs(0)
介绍http请求的两种方式,get和post方式。并用C#语言实现,如何请求url并获取返回的数据请求服务器上的数据,并将其返回. 参考事例:https://blog.csdn.net/mrli113/article/details/53200557/ Read More
posted @ 2018-08-15 08:54 释怀lhf Views(190) Comments(0) Diggs(0)
charAt() 获取字符串中特定索引处的字符; toupperCase() 将字符串的所有字符转换成大写字母; indexOf() 返回字符串中特定字符串第一次出现的位置 substring() 返回字符串的某个子串 slice() 返回字符串中的某个子串,支持负数参数(字符串中倒数第一个字符定为 Read More
posted @ 2018-03-17 15:27 释怀lhf Views(217) Comments(0) Diggs(1)