随笔分类 - asp.Net2.0
摘要:System.Web.Security.FormsAuthentication.HashPasswordForSortingInConfigFile("Roboth","md5")
阅读全文
摘要:By default, when a sorting or paging operation is performed, the GridView control posts back to the server to perform the operation. When the EnableSortingAndPagingCallbacks property is set to true, a service is called on the client to perform sorting and paging operations, which eliminates the need to post back to the server.
阅读全文
摘要:摘要 缺省情况下,ASP.NET应用程序以本机的ASPNET帐号运行,该帐号属于普通用户组,权限受到一定的限制,以保障ASP.NET应用程序运行的安全。但是有时需要某个ASP.NET应用程序或者程序中的某段代码执行需要特定权限的操作,比如某个文件的存取,这时就需要给该程序或相应的某段代码赋予某个帐号的权限以执行该操作,这种方法称之为身份模拟(Impersonation)。本文介绍了在ASP.NE...
阅读全文
摘要:按字节地复制文件 FileStream srcfile = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); FileStream desfile = new FileStream(path2, FileMode.Create, FileAccess.Write, FileShare.Write); in...
阅读全文
摘要:public static void Main() { //写入大对象到SqlServer FileStream fs = new FileStream("C:\\test.bmp",FileMode.OPen,FileAccess.Read); BinaryReader br = new BinaryReader(fs); SqlConnection conn = new SqlConnect...
阅读全文
摘要:对象的Copy必须实现ICloneable接口
ShallowCopy
DeepCopy
阅读全文
摘要:Page Cirlcle Life
阅读全文
摘要:Cmd.ExecuteReader(CommandBehavior:CloseConnection);
阅读全文
摘要:Mutiple Active Result Sets
Net 2.0 Sqlserver
阅读全文
摘要:SqlDataReader转化为DataTable的方法、
阅读全文
摘要:DataReader对象与数据获取 DataReader对象以“基于连接”的方式来访问数据库。也就是说,在访问数据库、执行SQL操作时,DataReader要求一直连在数据库上。这将会给数据库的连接负载带来一定的压力,但DataReader对象的工作方式将在很大程度上减轻这种压力。 1、DataReader对象的常用属性 DataReader对象提供了用顺序的、只读的方式读取用Command对...
阅读全文
摘要:SYMPTOMS
When you view a Microsoft ASP.NET Application in a Web browser, you may receive the following error messages:
For the Microsoft .NET Framework version 1.1, the error message is the following:
CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\application1\c11b43f6\cf3ec03\rizcntet.dll' . The directory name is invalid.
For the .NET Framework 1.0, the error message is the following:
CS0013: Unexpected erro
阅读全文
摘要:其实这个是Remoting Script的一个实例应用而已。
阅读全文
摘要:概述 http://www.cnblogs.com/ltp/archive/2006/04/17/377564.html 一、PetShop的系统架构设计 http://www.cnblogs.com/wayfarer/archive/2007/03/23/375382.html 二、PetShop数据访问层之数据库访问设计 http://www.cnblogs.com/wayfarer/arc...
阅读全文
摘要:HashTable+Cookie实现购物车
阅读全文
摘要:#region fileUpload /// /// 按规定上传图片 /// /// FileUpload /// 图片大小 Unit:K 不限制为-1 /// 图片宽度.不限制为-1 /// 图片高度.不限制为-1 /// 把文件信息显示到Label标签,不显示设置为null /// 把文件信息显示到Image标签,不显示设置为nu...
阅读全文