转自:http://ulfqbpl.blog.163.com/blog/static/87783552201272824843607/获取控制器名称:ViewContext.RouteData.Values["controller"].ToString();我试了应该这样写:RouteData.Va...
分类:
Web程序 时间:
2014-05-26 01:33:55
阅读次数:
235
MVC全名是Model View
Controller,是模型(model)-视图(view)-控制器(controller)的缩写,一种软件设计典范,用一种业务逻辑、数据、界面显示分离的方法组织代码,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务逻辑。MV...
分类:
Web程序 时间:
2014-05-26 01:22:45
阅读次数:
263
sudo add-apt-repository ppa:n-muench/burgsudo
apt-get updatesudo apt-get install burg burg-themesDone. Now install BURG to
your MBR(Master Boot Record...
分类:
其他好文 时间:
2014-05-26 01:01:33
阅读次数:
256
you should consider creating a custom View
component and drawing with a Canvas inView.onDraw(). The most convenient aspect
of doing so is that the And...
分类:
其他好文 时间:
2014-05-26 00:05:06
阅读次数:
327
MVC(Model/View/Controller)模式是国外用得比较多的一种设计模式,好象最早是在Smaltalk中出现。MVC包括三类对象。Model是应用对象,View是它在屏幕上的表示,Controller定义用户界面对用户输入的响应方式。
模型-视图-控制器(MVC)是80年代Smallt...
分类:
其他好文 时间:
2014-05-25 23:19:23
阅读次数:
235
一般我们在编写完Service服务程序后,都是通过cmd命令提示窗口来安装或卸载服务,但频繁的在cmd窗口中去“拼”文件的路径着实让人“不能忍”。所以,我们需要一钟“更快捷”的方式来进行安装或者卸载操作。
直接上代码:安装服务:@echo offc:\WINDOWS\Microsoft.NET...
分类:
其他好文 时间:
2014-05-25 19:37:13
阅读次数:
212
1 - Tomcat Server的组成部分
1.1 - Server
A Server element represents the entire Catalina servlet container. (Singleton)
1.2 - Service
A Service element represents the combination of one or more Con...
分类:
其他好文 时间:
2014-05-25 07:10:23
阅读次数:
278
ASH和AWR的关系
ASH以V$SESSION为基础,每秒采样一次,记录活动会话等待的事件。不活动的会话不会采样,采样工作由新引入的后台进程MMNL来完成。
ASH内存记录数据始终是有限的,为了保存历史数据,引入了自动负载信息库(Automatic Workload Repository ,AWR) 由后台进程MMON完成。ASH信息同样被采集写出到AWR负载库中。由于内存是有限的,所以MM...
分类:
数据库 时间:
2014-05-25 07:06:13
阅读次数:
377
BasedonUbuntu14.04LTS
sudoaptitude-yinstallmaasmaas-dhcpmaas-dnsMAAS服务器修改为静态IPaddress后无法访问web$sudodpkg-reconfiguremaas-region-controller
$sudodpkg-reconfiguremaas-cluster-controller
$sudoreboot
MAASloginandimportbootp_w_picpaths
sudomaas-regi..
分类:
其他好文 时间:
2014-05-24 16:28:20
阅读次数:
357
参考文章http://blog.sina.com.cn/s/blog_a57562c80101ic47.htmlhttp://blog.csdn.net/cheng168520/article/details/4312828http://blog.sina.com.cn/s/blog_7f395ece0100ti5y.html以前在自己本机上安装过一个Linux,后台应为系统崩溃,以前配置的开机启动脚本、数据库主从双备..
分类:
系统相关 时间:
2014-05-24 15:24:20
阅读次数:
415