有风的日子

Miss Wendy Days

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2008年11月12日

摘要: C#格式化日期时间 Post By:2008-10-3 7:57:30 DateTime dt = DateTime.Now;Label1.Text = dt.ToString(); //2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString(); ... 阅读全文
posted @ 2008-11-12 17:11 入心 阅读(466) 评论(0) 推荐(0) 编辑

2008年11月7日

摘要: 如果你的VS2008不是英文版,运行文件AspNetMVC进行安装,安装完成会后发现在VS2008里面只出现了MVC的项目模板,但新建项目后并不会出现项(Item)的模板。 解决方法: 第一步: 复制如下文件夹(x为您对应的安装盘符,一般为c:\Program Files,下同): x\Microsoft Visual Studio 9.0\Common7 \IDE\ItemTemplates\C... 阅读全文
posted @ 2008-11-07 14:47 入心 阅读(576) 评论(0) 推荐(0) 编辑

2008年10月31日

摘要: ASP.NET 2.0 中增加了内建的 MasterPage 的支持,这对我们来说是一个很大的便利。然而经过一段时间的使用,我发现 MasterPage 并不是那么完美:嵌套的 MasterPage 不能支持设计时界面,以及下面要提到的Content Page 中增加 CSS 的问题。通常,在没有 2.0 之前,我们在页面里要增加一个 CSS 引用的语法如下: 原本是很平常的做法。但是在一个 Ma... 阅读全文
posted @ 2008-10-31 14:19 入心 阅读(1508) 评论(0) 推荐(0) 编辑

2008年10月25日

摘要: 文件上传(File upload)Ajax File Upload.jQUploader.Multiple File Upload plugin. jQuery File Style.Styling an input type file.Progress Bar Plugin. 表单验证(Form Validation)jQuery Validation.Auto Help.Simple jQue... 阅读全文
posted @ 2008-10-25 08:29 入心 阅读(309) 评论(0) 推荐(0) 编辑

2008年10月21日

摘要: 检测并发 首先使用下面的SQL语句查询数据库的产品表: select * from products where categoryid=1 var query = from p in ctx.Products where p.CategoryID == 1 select p; foreach (var p in query) ... 阅读全文
posted @ 2008-10-21 17:10 入心 阅读(785) 评论(0) 推荐(0) 编辑

摘要: 子查询 描述:查询订单数超过5的顾客信息 查询句法: var 子查询 = from c in ctx.Customers where (from o in ctx.Orders group o by o.CustomerID into o where o.Count() > 5 select o.... 阅读全文
posted @ 2008-10-21 17:03 入心 阅读(6076) 评论(1) 推荐(0) 编辑

摘要: DISTINCT 描述:查询顾客覆盖的国家 查询句法: var 过滤相同项 = (from c in ctx.Customers orderby c.Country select c.Country).Distinct(); UNION 描述:查询城市是A打头和城市包含A的顾客并按照顾客名字排序 查询句法: var 连接并且过滤相同项 = (from c in ctx.... 阅读全文
posted @ 2008-10-21 16:46 入心 阅读(925) 评论(0) 推荐(0) 编辑

摘要: WHERE 描述:查询顾客的国家、城市和订单数信息,要求国家是法国并且订单数大于5 查询句法: var 多条件 = from c in ctx.Customers where c.Country == "France" && c.Orders.Count > 5 select new ... 阅读全文
posted @ 2008-10-21 16:37 入心 阅读(2133) 评论(0) 推荐(0) 编辑

摘要: SELECT描述:查询顾客的公司名、地址信息 查询句法: var 构建匿名类型1 = from c in ctx.Customers select new { 公司名 = c.CompanyName, ... 阅读全文
posted @ 2008-10-21 16:18 入心 阅读(445) 评论(0) 推荐(0) 编辑

2008年8月27日

摘要: Internet Explorer 8 Internet Explorer 8 public beta 1 于 2008 年 3 月 5 日发布。 微软宣称在默认的情况下,Internet Explorer 8 将按照严格的 W3C 标准来解释网页。 Internet Explorer 7 Internet Explorer 7.0 发布于 2006 年 11 ... 阅读全文
posted @ 2008-08-27 10:19 入心 阅读(157) 评论(0) 推荐(0) 编辑