珂珂的个人博客 - 一个程序猿的个人网站

最新发布

[未分类]

wpf获取DataGrid文本

admin 阅读(2111) 评论(0)

我就想获取某行某列的文本,本来在winform中很简单的,却发现在wpf中还挺不好做,也许是我还没找到简单的实现。///<summary> ///获取单元格文字 ///</summary> ///<paramname="dataGrid1"></param> ///<paramname="str"></param> ///<returns></returns> publicstaticstringGetCellIndex(DataGriddata [...]   阅读全文

[未分类]

MVC生成静态html页的做法

admin 阅读(2519) 评论(0)

这个问题该怎么描述呢,我就是想获取到html再自己处理,貌似可以用HttpModule然后重写Response.Filter的StreamMVC我的做法是publicstaticstringRenderPartialViewToString(Controllercontroller,stringviewName,objectmodel) { controller.ViewData.Model=model; StringWritersw=newStringWriter(); ViewEngineResultviewResult=ViewEngines.Engines.FindPartia [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(十一)-后记

admin 阅读(2552) 评论(0)

前面胡乱贴了些较复杂的一些代码实现,主要过去这么久不知道怎么写,也显示了我的博客后台设计以及数据库设计...应该不会有人有兴趣黑我的博客吧,不过欢迎。我想sql注入应该没有了,xss和xsrf 也许有,当然也许还有其它许多漏洞,自己也没怎么测试。 [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(十)-主页查询存储过程

admin 阅读(2735) 评论(0)

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: <个人博客首页> --分类 [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(九)-查询文章函数

admin 阅读(2738) 评论(0)

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: [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(八)-自定义路由

admin 阅读(3116) 评论(0)

实现伪静态有很多种方法,不过我发现asp.net mvc的路由也可以实现这里有个问题倒是纠结了很久,就是需要注释掉RouteConfig.cs中默认的路由或者移动都最后routes.MapRoute( name:"Default", url:"{controller}/{action}/{id}", defaults:new{controller="Blog",action="Index",id=UrlParameter.Optional} );然后自定一个路由类继承RouteBase 重写GetRou [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(七)-前台文章Controller

admin 阅读(3043) 评论(0)

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 [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(六)-前台主页Controller

admin 阅读(2840) 评论(0)

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 { [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(五)-前台基页Controller

admin 阅读(2840) 评论(0)

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: [...]   阅读全文

[未分类]

FYJ.Blogs开发系列(四)-后台文章Controller

admin 阅读(3032) 评论(0)

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 [...]   阅读全文