public partial class WebForm2 : System.Web.UI.Page{ BLL.CategoryBLL categorybll = new CategoryBLL(); BLL.NewsBLL newsbll = new NewsBLL(); //接...
分类:
Web程序 时间:
2015-07-08 14:30:10
阅读次数:
130
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 ...
控制器代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplication1.Models;using System.I...
分类:
Web程序 时间:
2015-07-08 14:14:29
阅读次数:
161
using System;using System.Collections.Generic;namespace ConsoleApplication4{ class Program { /// /// 以组装电脑为例子 /// 每台电脑的组成过...
分类:
其他好文 时间:
2015-07-08 12:41:28
阅读次数:
80
安德鲁斯系统备份是非常的情况下,可以使用。下面的这个python脚本。它可以用来备份整个data分:所有data分区的文件和文件夹打包data.zip。并产生recovery专用edify脚本update-script.sh。当然,备份system分区了,假设再加上几行代码,就能够备份boot,re...
分类:
移动开发 时间:
2015-07-08 12:37:27
阅读次数:
403
System.Timers.Timer pTimer = new System.Timers.Timer(10000);//每隔5秒执行一次,没用winfrom自带的 pTimer.Elapsed += Button1;//委托,要执行的方法 ...
分类:
Web程序 时间:
2015-07-08 12:34:27
阅读次数:
186
报错:未经处理的异常:System.Net.Sockets.SocketException: 以一种访问权限不允许的方式做了一个访问套接字的尝试 → 尝试以"管理员身份"运行程序,不行。→ 点击菜单下的"运行",输入"cmd",来到控制台。→ 输入"netstat -a"查看端口是否被占用,发现应用...
分类:
Web程序 时间:
2015-07-08 12:19:17
阅读次数:
1491
SQL>selectname,value,isses_modifiable(session级别修改的参数),issys_modifiable(system级别修改的参数)2fromV$PARAMETER3wherename='max_dump_file_size';SQL>altersystemre...
分类:
数据库 时间:
2015-07-08 10:55:57
阅读次数:
253
在部署两个项目,这两个项目都是采用了一个框架,只是业务系统进行了修改。部署的时候发现启动有问题。会报类似下边的错误Web app root system property already set to different value: 'webapp.root' = [/home/user/tomc...
分类:
其他好文 时间:
2015-07-08 09:25:50
阅读次数:
174
以下是在VirtualBox里的安装过程: 1. 选择“Select Install or upgrade existing system”2. 选择“skip ”3. 点击“Next”4. 选择语言后点击“Next”5. 选择键盘6. 选择“Select Basic Storage Device....
分类:
其他好文 时间:
2015-07-08 09:22:00
阅读次数:
95