摘要: .NET网站开发技术总结 <!-- .note-content {font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei', 'WenQuanYi Micro Hei', SimSun, 阅读全文
posted @ 2016-02-27 11:21 lampon 阅读(181) 评论(0) 推荐(0) 编辑
摘要: C#/.net代码样例:using System.Net;using Enyim.Caching;using Enyim.Caching.Configuration;using Enyim.Caching.Memcached;namespace OCS.Memcached{ public se... 阅读全文
posted @ 2014-10-21 16:15 lampon 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 第一种:http://static.video.qq.com/TencentPlayer.swf?vid=p0012xby08r&auto=1&outhost=http://cf.qq.com/第二种:http://imgcache.qq.com/tencentvideo_v1/player/TPo... 阅读全文
posted @ 2014-10-11 15:20 lampon 阅读(332) 评论(0) 推荐(0) 编辑
摘要: public void SetLog(string content) { string hh = Server.MapPath("/log/") + DateTime.Now.ToString("yyyyMMdd") + ".txt"; ... 阅读全文
posted @ 2014-07-24 09:53 lampon 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE proc_keyword @content nvarchar(max) asbegindeclare @SplitName nvarchar(max)declare @SubName nvarchar(max)declare @Split nvarchar(1... 阅读全文
posted @ 2014-07-06 17:19 lampon 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1 概述正则表达式(Regular Expression)是一种匹配模式,描述的是一串文本的特征。正如自然语言中“高大”、“坚固”等词语抽象出来描述事物特征一样,正则表达式就是字符的高度抽象,用来描述字符串的特征。正则表达式(以下简称正则,Regex)通常不独立存在,各种编程语言和工具作为宿主语言提... 阅读全文
posted @ 2014-07-04 09:25 lampon 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 服务器环境要求:Windows 2003 server + IIS6.01.必须安装.net framework 4.0, MVC2.最好能安装.net framework 的sp1, 我们服务器上装的是.net framework 3.5 sp1和mvc3.IIS站点配置1. 添加站点, 在站点上... 阅读全文
posted @ 2014-06-03 22:14 lampon 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 在webconfig中节点插入 相关资料:http://stackoverflow.com/questions/19504910/proper-tutorial-on-setting-up-iis7-with-an-asp-net-mvc4-applica... 阅读全文
posted @ 2014-05-31 10:47 lampon 阅读(247) 评论(0) 推荐(0) 编辑
摘要: //从控件上传文件 public void fileUpload() { System.Web.HttpFileCollection files = Request.Files; for (int fileCount = 0; fileCount < files.Count; fileCount++) { System.Web.HttpPostedFile postedfile = files[fileCount]; string... 阅读全文
posted @ 2014-04-08 16:25 lampon 阅读(185) 评论(0) 推荐(0) 编辑
摘要: /// /// 读取Excel文档 /// /// 文件名称 /// 返回一个数据集 public DataSet ExcelToDS(string Path) { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +"Data Source="+ Path +";"+"Extended Properties=Excel 8.0;"; OleDbConnection conn = new OleDbConnection(strConn); conn.Open( 阅读全文
posted @ 2014-04-08 11:43 lampon 阅读(218) 评论(0) 推荐(0) 编辑