自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (1)
  • 收藏
  • 关注

转载 php 配置

一般在已经安装iis的windows系统上已经默认支持了asp,那么下面主要讲解如何让其也支持php并且支持MYSQL和gd库。   Windows XP下PHP+IIS的安装方法    1、把php-5.0.0(目前有5.0.5最新版本,推荐使用)-Win32.zip解压放到C:\php(不是系统盘也行)。   2、将php.ini-dist复制到WINDOWS目录下并改名为php.ini,复制

2014-01-08 16:46:59 434

转载 asp.net 数据库 缓存依赖

首先需要在web。config文件中配置缓存依赖的相关内容: 在   节下面编写: 告诉编译器要cache的名称是什么,缓存的字符串是哪个,隔多长时间监视一次数据库。 然后需要在野蛮Page_Load(object sender, EventArgs e)中启用缓存; private string conString = ConfigurationManager

2014-01-02 10:23:28 399

wkhtmltopdf 导出pdf

导出网页到pdf工具。。 public static bool HtmlToPdf(string url, string path) { try { if (string.IsNullOrEmpty(url) || string.IsNullOrEmpty(path)) return false; Process p = new Process(); string str = System.Web.HttpContext.Current.Server.MapPath("~/wkhtmltopdf.exe"); if (!System.IO.File.Exists(str)) return false; string switches = "--print-media-type "; switches += "--margin-top 0mm --margin-bottom 4mm --margin-right 0mm --margin-left 0mm "; switches += "--page-size A4 "; // switches += "--no-background "; switches += "--redirect-delay 100%"; //p.SessionId == "1"; p.StartInfo.FileName = str; p.StartInfo.Arguments = switches + " " + url + " " + path; //p.StartInfo.Arguments = " \"" + url + "\" " + path; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.CreateNoWindow = true; p.Start(); System.Threading.Thread.Sleep(800); // p.SessionId p.WaitForExit(); p.Close(); return true; } catch (Exception ex) { HttpContext.Current.Response.Write(ex); } return false; }

2013-07-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除