随笔分类 - ASP.NET
遍历Request.ServerVariables
摘要:Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径 Request.ServerVariables("Path_Translated") 通...
阅读全文
一个 NHIBERNATE+GRIDVIEW 添加删除修改的例子
摘要:1. interface (界面) aspx: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题页 ...
阅读全文
.NET 3.5 SP 1发布了
摘要:作者 Jonathan Allen译者 朱永光 发布于 2008年8月11日 下午9时46分 转载自www.infoq.com .NET 3.5和Visual Studio 2008的Service Pack 1今天已经发布了。虽然称为“Service Pack”,但大量全新的特性让这个版本就像.NET 3.0那样意义重大。它包含了引起广泛争论的ADO.NET Entity Framewor...
阅读全文
ASP.NET中常用的26个优化性能方法
摘要:ASP.NET中常用的26个优化性能方法在文中将有较为ASP.NET中常用的26个优化性能方法在文中将有较为详细的解释供大家探讨……
阅读全文
C#经典采集代码
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Secu...
阅读全文
C#数据库递归构造treeview树形结构
摘要:1、首先数据库: f_id 项目ID号 ,f_front 父ID号 ,f_name名称,f_type类型,f_layer所处层,f_order 同层的顺序号;(f_layer,f_order不要也可,这里我主要是需要同层排序才用到) 2、然后“select f_id,f_front,f_name,f_type from data”取得DataSet数据集dsFrame;treeview 名称设为t...
阅读全文
C#递归在dropdownlist显示树状
摘要:/**//**//**//// /// 绑定文件分类 /// public void bind() { //获取数据集 DataSet ds = new DataSet(); ds = ec.ExecuteSelectCmmond("select * from t_Column where U_UserID=...
阅读全文
ASP.NET多种方式生成高质量缩略图
摘要:在网站开发时,生成缩略图是一个非常常见和实用的功能.以前在asp里只能借助com组件实现,现在在.net里可以利用框架的强大的类库轻松实现.下面帖出完整的代码(带详细注释)。 /// /// 生成缩略图 /// /// 源图路径(物理路径) /// 缩略图路径(物理路径) /// 缩略图宽度 /// 缩略图高度 /// 生成缩略图的方式 public static void MakeThu...
阅读全文
日期的验证表达式[收藏]
摘要:【日期的验证表达式】 以下正确的输入格式: [2004-2-29], [2004-02-29 10:29:39 pm], [2004/12/31] ^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])...
阅读全文
浙公网安备 33010602011771号