上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: 主要属性: Font Properties Font Family Font Style Font Variant Font Weight Font Size Font Color and Background Properties Color Background Color Background 阅读全文
posted @ 2012-05-19 17:28 Yu 阅读(138) 评论(0) 推荐(0) 编辑
摘要: PatternImageInBody = @"<img\s*src=""(\.\.)?/files/images/\d+/({#filename})""\s*/>";for (int i = 0; i < imagesInBody.Count; i++) { string pattern = patternImageInBody.Replace("{#filename}", Regex.Escape(Path.GetFileName(imagesInBody[i]).ToLower())); if 阅读全文
posted @ 2012-05-19 17:12 Yu 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: LINQ TO XML client xxxx@xxx.com xxxx@xxx.com client xxxxx@xxx.com xxxxx@xxx.com string path = Path.Combine(serverMap, "Config\\EmailAccount.xml"); XDocument xdoc = XDocument.Parse(File.ReadAllText(path)); var account = from c in xdoc.Descendants("account").Descendants("type& 阅读全文
posted @ 2012-05-19 17:02 Yu 阅读(380) 评论(0) 推荐(0) 编辑
摘要: @using (Html.BeginForm("ForEmail", "CSOT", FormMethod.Post)){ CSOT Email @Html.TextAreaFor(m => m.Bodies, new { @class = "ckeditor" }) }========================自定义工具条,在ckeditor目录下打开 config.js:默认CKEDITOR.editorConfig = function( config ){// Define changes to default c 阅读全文
posted @ 2012-05-19 16:43 Yu 阅读(464) 评论(0) 推荐(0) 编辑
摘要: function WaitFor() { var div = $('wait for processing......'); $('body').append(div);}function AskContinue() { if (confirm("Are you sure you want to do it?")) { $("form").submit(); }}@using (Html.BeginForm("ForUpload", "CSOT", FormMethod.Post, 阅读全文
posted @ 2012-05-18 10:26 Yu 阅读(3684) 评论(0) 推荐(0) 编辑
摘要: 如果在 form 中,存在 id="submit" 的 input ,将导致$('form').submit() 提交无效 阅读全文
posted @ 2012-05-17 11:31 Yu 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 当项目设置为asp.net 角色认证时,如在web.config有: 由于权限问题,LogOn.cshtml 无法加载Content 目录下的 *.css 和 Scripts 目录下的 *.js所以在web.config中,再加设置如下: 阅读全文
posted @ 2012-05-16 14:31 Yu 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 当 table 没有主键时,将 table 拖进 dbml,该 table 的 IsReadOnly=true; 对该 table 的字段进行修改后,db.SubmitChanges(),是不会报错,也并没有更新。 阅读全文
posted @ 2012-05-10 16:09 Yu 阅读(117) 评论(0) 推荐(0) 编辑
摘要: select count(id) from project p inner join task t on p.id=t.projectId;select count(id) from project where id in(select p.id from project p inner join task t on p.id=t.projectId);上面两条语句:当 project 与 task 是一对一时,结果是一样的当 project 与 task 是一对多时,结果就不一样了 阅读全文
posted @ 2012-05-08 17:34 Yu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: cross join: 对A,B两表进行交差联接,结果集是等于 A表行数*B表行数。(一个笛卡尔积结果集)inner join: 在cross join的基础上,对其结果集进行 on 条件过滤。left/right join: 在inner join的基础上,对其结果集再添加左表(右表)在右表(左表)没有的外部行集(null值填充)。inner/left/right join 如果存在 where,则会对在on过滤之后的结果集(包括外部外)进行再次过滤。 阅读全文
posted @ 2012-05-03 09:01 Yu 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页