![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp-net
诺亚蜗牛_Snail
世界上只有一种成功,就是按自己喜欢的方式过完一生
展开
-
动态生成图片
using System; using System.Web; using System.Drawing;返 回的是img标签 context.Response.ContentType = "text/html"; string html = "<img src=\" 图片路径 \" />"; context.Response.Write(html);返回真正的图片本身原创 2017-07-09 22:04:31 · 710 阅读 · 0 评论 -
NVelocity模版引擎
NVelocity模版引擎需要引用外部的NVelocity.dll文件示例1后台代码<%@ WebHandler Language="C#" Class="Handler" %>using System;using System.Web;using NVelocity.App;using NVelocity.Runtime;using NVelocity;using System.IO;p原创 2017-08-18 01:06:58 · 375 阅读 · 0 评论 -
c#文件压缩,需要借助外部dll文件和ZipHelper.cs
后台代码 ZipHelper z = new ZipHelper(); List<string> pathList=new List<string> (); pathList.Add("E:\\wceq\\index.aspx"); pathList.Add("E:\\wceq\\Error.aspx"); pathList.Add("原创 2017-09-26 22:39:06 · 310 阅读 · 0 评论 -
iis6导出Excel报错检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败,8000401a错误解决办法
1:在服务器上安装office的Excel软件.2:在"开始"->"运行"中输入dcomcnfg.exe启动"组件服务"3:依次双击"组件服务"->"计算机"->"我的电脑"->"DCOM配置"4:在"DCOM配置"中找到"Microsoft Excel 应用程序",在它上面点击右键,然后点击"属性",弹出"Microsoft Excel 应转载 2017-12-07 17:55:38 · 662 阅读 · 0 评论 -
关于 winform Dev 使用的总结
treeList1.去除树的头一行:属性–OptionsView–ShowColumns 设为fakse2.去除树最左列的鼠标箭头列:属性–OptionsView–ShowIndicator设为false原创 2017-12-27 17:49:29 · 668 阅读 · 0 评论