通过Web访问windows远程桌面
Hyper-V 安装OpenWRT
Esxi 群晖7.1
Esxi TrueNAS 存储池的问题
zerotier异地组网
同步工具改进
阿里云同步工具
我的博客采用的架构
数据库同步工具
多线程域名查询工具
最新发布
2014.05.30
admin
阅读(2117)
评论(0)
这个问题该怎么描述呢,我就是想获取到html再自己处理,貌似可以用HttpModule然后重写Response.Filter的StreamMVC我的做法是publicstaticstringRenderPartialViewToString(Controllercontroller,stringviewName,objectmodel)
{
controller.ViewData.Model=model;
StringWritersw=newStringWriter();
ViewEngineResultviewResult=ViewEngines.Engines.FindPartia [...] 阅读全文
2014.05.30
admin
阅读(1849)
评论(0)
前面胡乱贴了些较复杂的一些代码实现,主要过去这么久不知道怎么写,也显示了我的博客后台设计以及数据库设计...应该不会有人有兴趣黑我的博客吧,不过欢迎。我想sql注入应该没有了,xss和xsrf 也许有,当然也许还有其它许多漏洞,自己也没怎么测试。 [...] 阅读全文
2014.05.30
admin
阅读(2003)
评论(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: <个人博客首页>
--分类 [...] 阅读全文
2014.05.30
admin
阅读(2044)
评论(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: [...] 阅读全文
2014.05.30
admin
阅读(2421)
评论(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 [...] 阅读全文
2014.05.30
admin
阅读(2273)
评论(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 [...] 阅读全文
2014.05.30
admin
阅读(2144)
评论(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
{
[...] 阅读全文
2014.05.30
admin
阅读(2096)
评论(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: [...] 阅读全文
2014.05.30
admin
阅读(2291)
评论(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 [...] 阅读全文
2014.05.30
admin
阅读(2394)
评论(0)
这个页集成了添加和修改@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 [...] 阅读全文