上一页 1 ··· 6 7 8 9 10
摘要: 新建一般处理程序 ,改下面的函数: public void ProcessRequest(HttpContext context) { string filename; try { filename = context.Request["filename"].ToString(); } catch { context.Response.Write("不正确的访问!"); return; } string RealFile = context.Server.MapPath("~/Upload/files/" + filename);// 阅读全文
posted @ 2012-06-23 13:51 真爱无限 阅读(347) 评论(0) 推荐(0) 编辑
摘要: #region 数据库备份 BackupData /// <summary> /// 数据库备份 /// </summary> /// <param name="dir">MapPath转换过的备份文件目录</param> /// <param name="dbname">数据库名称</param> /// <returns>返回string值为空表示备份成功</returns> public static string BackupData(string d 阅读全文
posted @ 2012-06-23 13:48 真爱无限 阅读(179) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Text.RegularExpressions; namespace Tools { #region 配置文件类 ConfigFile /// <summary> /// 配置文件类 ConfigFile,内容存储到文件中,继承自配置接口 (一定要给ConfigFile.Instanse.fileName 赋值) /// </summary> public cl... 阅读全文
posted @ 2012-06-22 19:31 真爱无限 阅读(348) 评论(0) 推荐(0) 编辑
摘要: .net操作Excel的支持库下载 http://115.com/file/c2hkh144#NOPI.zip以前用过依赖于office的方法对Excel文件进行操作,在自己机器上运行正常,到服务器上就不能运行。这个问题困扰了我好久,终于找到了好的解决方法 。使用不依赖于office的外部dll来操作Excel。。首先,我自己建立的类,NpoiHelper,用来进行Excel与DataSet之间的转化,放于自己的类库Tools中类的内容如下:using System;using System.Collections.Generic;using System.Text;using System. 阅读全文
posted @ 2012-06-22 18:09 真爱无限 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 前台取得数据://数据库中有 typeid 和 typename 字段<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script><script type="text/javascript">var json;$(document).ready(function () { //ready-start$.post( //post请求开始"/test1.ashx", { data1: new Date() 阅读全文
posted @ 2012-03-26 14:57 真爱无限 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 安装文件下载(哪个下载快用哪个) :http://u.xunzai.com/fileview_848528.html或http://115.com/file/dpb17jr0#SVN版本控制.zip说明:软件名称是一样的,不同版本没多大区别,大致是一样的。先安装 服务端(Setup-Subversion-1.6.5.msi),再安装客户端(TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi),一路 next就行!服务器配置:手动在D盘创建文件夹,如:shareC:\Documents and Settings\Administrator>D:D:\&g 阅读全文
posted @ 2011-11-21 20:42 真爱无限 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10