摘要:ASP.NET 2.0 中增加了内建的 MasterPage 的支持,这对我们来说是一个很大的便利。然而经过一段时间的使用,我发现 MasterPage 并不是那么完美:嵌套的 MasterPage 不能支持设计时界面,以及下面要提到的Content Page 中增加 CSS 的问题。通常,在没有 2.0 之前,我们在页面里要增加一个 CSS 引用的语法如下: 原本是很平常的做法。但是在一个 Ma...
阅读全文
10 2008 档案
摘要:文件上传(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...
阅读全文
摘要:检测并发 首先使用下面的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) ...
阅读全文
摘要:子查询 描述:查询订单数超过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....
阅读全文
摘要:DISTINCT 描述:查询顾客覆盖的国家 查询句法: var 过滤相同项 = (from c in ctx.Customers orderby c.Country select c.Country).Distinct(); UNION 描述:查询城市是A打头和城市包含A的顾客并按照顾客名字排序 查询句法: var 连接并且过滤相同项 = (from c in ctx....
阅读全文
摘要:WHERE 描述:查询顾客的国家、城市和订单数信息,要求国家是法国并且订单数大于5 查询句法: var 多条件 = from c in ctx.Customers where c.Country == "France" && c.Orders.Count > 5 select new ...
阅读全文
摘要:SELECT描述:查询顾客的公司名、地址信息 查询句法: var 构建匿名类型1 = from c in ctx.Customers select new { 公司名 = c.CompanyName, ...
阅读全文

浙公网安备 33010602011771号