摘要: //////绑定所有图片列表////////////protectedvoidBindListPicPager(Repeatera,AspNetPagerAspNetPager1,Expression>filter){using(varcontext=newJGDJEntities()){varne... 阅读全文
posted @ 2015-05-28 18:03 calochCN 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 对于webfom,一种写法,将所有业务单元封装在一个pagebase里面,所有的页面继承自pagebase这个service外观,这样的结果就是,所有的页面单元上代码量会非常少。最大程度减少耦合,而最终要的效果就是,这样的系统非常容易维护。在控件上用语义化和action来整理,封闭内部内容。只暴露配... 阅读全文
posted @ 2015-05-28 18:00 calochCN 阅读(133) 评论(0) 推荐(0) 编辑
摘要: usingJGDJWeb.Model;usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Security.Cryptography;usingSystem.Text;usin... 阅读全文
posted @ 2015-05-28 14:25 calochCN 阅读(232) 评论(0) 推荐(0) 编辑
摘要: //////根据请求分类判断当前活动列表项/////////publicStringGetCClass(intindex){varclassCName=Request["classCName"]??"文";varreturnValue=String.Empty;vararray=newString[... 阅读全文
posted @ 2015-05-27 14:38 calochCN 阅读(99) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web; usingSystem.Xml; namespaceSystem{ //////XMLHelperXML文档操作管理器///publiccl... 阅读全文
posted @ 2015-05-27 11:20 calochCN 阅读(175) 评论(0) 推荐(0) 编辑
摘要: //////绑定新闻列表,带分页与查询////////////protectedvoidBindList(Repeatera,AspNetPagerAspNetPager1,Expression>filter){ClassNo=Request["ClassNo"];varnew_list=newLi... 阅读全文
posted @ 2015-05-27 10:53 calochCN 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 对于.net webform与 .net mvc,我是小有所成之后才又回到了webform,先前的时候只是在webform学习挺深入了,英文也练地久了,发现编程只是在英文的好坏是非常大的一个影响。webform,近来做这个,真正感受到了那种快速,这种效率来自哪里呢?它们需要一个懂它们的人来封装!而w... 阅读全文
posted @ 2015-05-25 22:49 calochCN 阅读(195) 评论(0) 推荐(0) 编辑
摘要: /// /// 过滤不安全的字符串 /// /// /// public static string FilteSQLStr(string Str) { Str = Str.Replace("'", ""); Str = Str.Replace("\"", ""); Str = Str.Re... 阅读全文
posted @ 2015-05-25 20:48 calochCN 阅读(705) 评论(0) 推荐(0) 编辑
摘要: usingSystem.Text.RegularExpressions;usingSystem.Web; internalclassHtmlHelper{/// ///去除HTML标记 /// ///包括HTML的源码 ///已经去除后的文字 publicstaticstringNoHTML(str... 阅读全文
posted @ 2015-05-25 19:55 calochCN 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 这是最近在干一个webform的cms的时候用起来的,原来虽然做过很多技术,什么remoting,wcf,webservice,可是弄来弄去,最后也没个收藏的地儿,全都放在笔记本儿上了,可是人又懒地可以,做来做去,最后它们还是扔在那里。说正题吧:最近用到的这套小型的cms,主就是用的链表了,大部分的... 阅读全文
posted @ 2015-05-25 19:54 calochCN 阅读(271) 评论(1) 推荐(0) 编辑