摘要: Definition and UsageThe CONVERT() function is a general function that converts an expression of one data type to another.The CONVERT() function can be used to display date/time data in different formats.SyntaxCONVERT(data_type(length),expression,style)ValueDescriptiondata_type(length)Specifies the t 阅读全文
posted @ 2014-03-31 17:01 Cathy Lee 阅读(225) 评论(0) 推荐(0) 编辑
摘要: /// /// DataTable与实体类互相转换 /// /// 实体类 public class ModelHandler where T : new() { #region DataTable转换成实体类 /// /// 填充对象列表:用DataSet的第一个表填充实体类 /// /// DataSet /// public List FillModel(DataSet ds) { if (ds == null... 阅读全文
posted @ 2014-03-20 16:01 Cathy Lee 阅读(171) 评论(0) 推荐(0) 编辑
摘要: public class DBAccess:IDisposable { // private string DefaultDbString = string.Format(ConfigurationManager.ConnectionStrings["DefaultDbString"].ConnectionString,Config.Password); private string DefaultDbString = string.Format(ConfigurationManager.ConnectionStrings["DefaultDbString&quo 阅读全文
posted @ 2014-03-20 15:46 Cathy Lee 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-20 15:40 Cathy Lee 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 以下的是自己尝试翻译MSDN的文章原文:http://msdn.microsoft.com/en-us/library/7ay27kt9(v=vs.110).aspx序列化是把对象转化为成一种可以保存和传输的过程,它的反过程就是反序列化,反序列化死指把数据流转化为对象的过程。这两个过程使得数据的存储和传输变得很方便。.NET Framework 有两种序列化的技术:二进制序列化可以保留类型,在不同的应用之间保存对象。比如,你可以用二进制序列化的方法把对象序列化并保存在剪切板上。你可以把对象序列化成数据流 保存在硬盘,内存,然后通过网络传输,把数据传到另一个电脑,应用或者域。XML 序列化只会序 阅读全文
posted @ 2014-03-20 15:24 Cathy Lee 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 原文连接:http://www.diranieh.com/NETSerialization/XMLSerialization.htm总结:介绍XML 序列化示例XML Schema 定义文档通过 Attributes来控制XML 序列化重写XML 序列化XML NamespaceXML 序列化和XML Web Service介绍序列化是指把对象转化为可以持续存续或者跨流程/机器传输的过程。它的方向过程就是反序列化,就是把把序列化以后的文件转换为原始的对象。.NET 提供了两种序列化的技术:二进制和XML.XML 序列化XML 序列化可以序列化一个类的公有成员和属性 或者参数,返回XML 数据流 阅读全文
posted @ 2014-03-11 14:40 Cathy Lee 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 1. jqgrid在显示数据时,设置jqgrid的高度随着行数的变化而变化,如果行数多于页面的高度时,则自动出现滚动条。 其实很简单有一个属性何以直接设置。如下:height:"100%", 阅读全文
posted @ 2014-03-03 15:57 Cathy Lee 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1 USE [database] 2 GO 3 /****** Object: StoredProcedure [dbo].[SP_Com_SelectByPage] Script Date: 03/03/2014 13:01:19 ******/ 4 SET ANSI_NULLS ON 5 GO 6 SET QUOTED_IDENTIFIER ON 7 GO 8 ALTER PROCEDURE [dbo].[SP_Com_SelectByPage] 9 ( 10 @tblName nvarchar(Max), ----要显示的表或多个表的连接... 阅读全文
posted @ 2014-03-03 13:04 Cathy Lee 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 很多时候我们的项目里面有好几个project,在classlibrary 里通常都要引用 web.config中的connectionstring。第一反应是用System.Configuration.ConfigurationManager.ConnectionStrings["DefaultDbString"].ConnectionString.但是这里有一个问题是,默认情况下classlibrary根本识别不了ConfigurationManager,尽管加了usingSystem.Configuration;其实这是一个很简单的问题,我纠结了很久,也google了很 阅读全文
posted @ 2014-02-28 10:02 Cathy Lee 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 在codeproject中看到这篇文章,写得很好,适合我这种入门级别的小菜鸟。地址:http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NETIntroductionHi folks, I am back with another tip of Iceberg.The responsibility to find out the Icebergs’ Size and volume is of yours. This time the Iceberg is JqGrid. You people might be think 阅读全文
posted @ 2014-02-26 16:54 Cathy Lee 阅读(592) 评论(0) 推荐(0) 编辑