FYJ.Blogs开发系列(十一)-后记
前面胡乱贴了些较复杂的一些代码实现,主要过去这么久不知道怎么写,也显示了我的博客后台设计以及数据库设计...应该不会有人有兴趣黑我的博客吧,不过欢迎。我想sql注入应该没有了,xss和xsrf 也许有,当然也许还有其它许多漏洞,自己也没怎么测试。 [...] 阅读全文
前面胡乱贴了些较复杂的一些代码实现,主要过去这么久不知道怎么写,也显示了我的博客后台设计以及数据库设计...应该不会有人有兴趣黑我的博客吧,不过欢迎。我想sql注入应该没有了,xss和xsrf 也许有,当然也许还有其它许多漏洞,自己也没怎么测试。 [...] 阅读全文
USE[db_blogs] GO /******Object:StoredProcedure[dbo].[blog_proc_main]ScriptDate:2014/5/2923:52:35******/ SETANSI_NULLSON GO SETQUOTED_IDENTIFIERON GO --============================================= --Author: <fangyj> --Createdate:<2012-12-30> --Description: <个人博客首页> --分类 [...] 阅读全文
USE[db_blogs] GO /******Object:UserDefinedFunction[dbo].[blog_func_articleTable]ScriptDate:2014/5/2923:42:13******/ SETANSI_NULLSON GO SETQUOTED_IDENTIFIERON GO --============================================= --Author: <Author,,Name> --Createdate:<CreateDate,,> --Description: [...] 阅读全文
实现伪静态有很多种方法,不过我发现asp.net mvc的路由也可以实现这里有个问题倒是纠结了很久,就是需要注释掉RouteConfig.cs中默认的路由或者移动都最后routes.MapRoute( name:"Default", url:"{controller}/{action}/{id}", defaults:new{controller="Blog",action="Index",id=UrlParameter.Optional} );然后自定一个路由类继承RouteBase 重写GetRou [...] 阅读全文
usingBlogs.Entity; usingBlogs.UI.Main.Models; usingFYJ.Common; usingFYJ.Web.NetPager; usingMicrosoft.Practices.Unity; usingSystem; usingSystem.Collections.Generic; usingSystem.Data; usingSystem.IO; usingSystem.Linq; usingSystem.Text.RegularExpressions; usingSystem.Web.Mvc; namespaceBlo [...] 阅读全文
usingBlogs.UI.Main.Models; usingFYJ.Web.NetPager; usingMicrosoft.Practices.Unity; usingSystem; usingSystem.Data; usingSystem.IO; usingSystem.Linq; usingSystem.Text.RegularExpressions; usingSystem.Web.Mvc; namespaceBlogs.UI.Main.Controllers { publicclassBlogController:BaseController { [...] 阅读全文
usingBlogs.Entity; usingBlogs.UI.Main.Models; usingSystem; usingSystem.Collections.Generic; usingSystem.Data; usingSystem.Web.Caching; usingSystem.Web.Mvc; usingSystem.Linq; usingSystem.Xml; usingFYJ.Web; usingFYJ.Common; namespaceBlogs.UI.Main.Controllers { publicclassBaseController: [...] 阅读全文
usingBlogs.Common; usingBlogs.Entity; usingBlogs.UI.Admin.Filters; usingBlogs.ViewModel; usingBlogs.ViewModel.MyBlog; usingFYJ.Pager; usingFYJ.Common; usingMicrosoft.Practices.Unity; usingSystem; usingSystem.Collections.Generic; usingSystem.Data; usingSystem.IO; usingSystem.Linq; usingS [...] 阅读全文
这个页集成了添加和修改@modelBlogs.ViewModel.MyBlog.Article @{ Layout=null; varcontentModel=ViewData["content"]asBlogs.Entity.blog_tb_article_content; if(contentModel==null) { contentModel=newBlogs.Entity.blog_tb_article_content(); } } <!DOCTYPEhtml> <htmlxmlns="http://ww [...] 阅读全文
@modelBlogs.Entity.blog_tb_article @{ ViewBag.Title="文章管理"; Layout="~/Views/Shared/_Index_Layout.cshtml"; } <scriptsrc="http://static.fyj.me/js/My97DatePicker/WdatePicker.js"type="text/javascript"></script> <divid="modalwindow"cl [...] 阅读全文