N150 万兆小主机折腾记
letsencrypt 自动续期
Janus-Pro 使用
AI学习记录
通过VLAN 进行局域网隔离
阿里云Ubuntu 重0开始
PVE 中LXC的Ubuntu安装minikube
Office Online安装
elasticsearch 学习记
搭建Docker仓库
最新发布
2014.05.30
admin
阅读(3988)
评论(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
阅读(4231)
评论(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
阅读(4388)
评论(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
阅读(4157)
评论(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
阅读(3873)
评论(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
阅读(4168)
评论(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
阅读(4330)
评论(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 [...] 阅读全文
2014.05.30
admin
阅读(4180)
评论(0)
@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 [...] 阅读全文
2014.05.25
admin
阅读(3782)
评论(0)
很早很早就想做个自己博客,觉得写实际东西的话能学到不少技术,起码应该比光看书要好。我是从JAVA开始逐渐入门的,最开始写JAVA 桌面程序,渐渐开始对编程开始感兴趣。后来又开始做jsp网页,然后同学说要学SSH框架,有一次要做一个CAS 单点登录...弄了一个月,还是没整出来点啥,觉得真是太麻烦。 [...] 阅读全文
2014.05.25
admin
阅读(3585)
评论(0)
这段时间再做下Discuz,发现有时候很慢很慢,有时一个页面请求超过30秒,这可如何能接受。最开始想是不是IIS的问题,因为是虚拟空间,我的php和.net混合在同个项目下,于是又在Web.config 删去各种HttpHandler,HttpMoudel等 只留下伪静态和首页设置,还是很慢... 然后我又用nginx 这可是出了名的快的东西,还是很慢。。 然后各种百度查找原因,有的说是远程引用js访问慢,我看到确实每个页面有加上http://discuz.gtimg.cn/cloud/scripts/discuz_tips.js 这段js,于是在整个目录去找,在source/plugin/ [...] 阅读全文