会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
释怀lhf
CnBlogs
Home
New Post
Contact
Admin
Subscription
2019年7月16日
C#操作excel数据表 在excel指定位置添加文字图片等操作
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)
2019年1月24日
html页面清除缓存
问题:页面打开时,由于缓存的存在,刚刚更新的数据有时无法在页面得到刷新,当这个页面作为模式窗口被打开时问题更为明显, 如何将缓存清掉? 解决办法: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)
2018年11月30日
updatePanel 局部刷新JS不执行解决办法
前台 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)
2018年11月10日
判断文件是否存在某路径下
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)
2018年8月16日
制作二维码
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)
2018年8月15日
C#通过GET/POST方式发送Http请求
介绍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)
2018年3月17日
JavaScript中字符串的常用操作方法
charAt() 获取字符串中特定索引处的字符; toupperCase() 将字符串的所有字符转换成大写字母; indexOf() 返回字符串中特定字符串第一次出现的位置 substring() 返回字符串的某个子串 slice() 返回字符串中的某个子串,支持负数参数(字符串中倒数第一个字符定为
Read More
posted @ 2018-03-17 15:27 释怀lhf
Views(217)
Comments(0)
Diggs(1)
公告