var uri = “http://www.wrox.com/illegal value.htm#start”;//”http://www.wrox.com/illegal%20value.htm#start”alert(encodeURI(uri));//”http%3A%2F%2Fwww.wrox.com%2Fillegal%20value.htm%23start”alert(encodeURIComponent(uri));The URI methods encodeURI(), encodeURIComponent(), decodeURI(), anddecodeURICompone Read More
http://elegantcode.com/2011/01/14/taking-baby-steps-with-node-js-debugging-with-node-inspector/ Read More
bll.出库申请单管理.ChangeState()这个方法执行出库单的状态更改动作因为 每个bll都是单独的数据库连接 为了事务的一致我在 bll.出库单管理.出库()这个方法里直接操作出库申请单表的state字段而不是调用bll.出库申请单管理.ChangeState()然后 现在写销售单管理 销售单生成出库申请单当出库申请单状态更改时需要更改销售单的状态这样的 我就还要更改两处的代码bll.出... Read More
1 把浮动在最上面的元素放在html代码的最后面 2 以下是正解 giving the parent element a higher z-index actual fixes the bug http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/ 原因:“In Internet Explorer posit... Read More
blowing in the wind 歌手:Bob Dylan How many roads must a man walk down
Before they call him a man
How many seas must a white dove sail
Before she sleeps in the sand
How many times must the cannon bal... Read More
http://forums.asp.net/t/1183564.aspx 在这里提出了一个我也想问的问题 问题描述: bll 4个类 blla bllb bllc blld blld.f() { blla.f(); bllb.f(); bllc.f(); } 这里 bllc.f();发生异常要撤销bllb.f();blla.f(); 解决 1: http://forums.asp.ne... Read More
y.Level.ToString().PadLeft(y.Level*2, (char)0xA0) + y.Name,
想了好久 终于找到了 Read More
首先 一个生成Lambda表达式的静态类
public static class PredicateExtensions { public static Expression<Func<T, bool>> True<T>() { return f => true; } public static Expressio... Read More
验证工作交给谁,service、controller、model? 交给 service 比如:添加用户
UserModel 有 Validate 方法 再去验证内部的各个字段什么的~~~
具体的验证 用
asp.net mvc validation framework xVal
... Read More
Membership.GetUser(user.ProviderUserKey.ToString()); Read More