1、return
View();返回值类型:System.Web.Mvc.ViewResult将视图呈现给响应的View()结果。注释View()类的此方法重载将返回一个具有空ViewName属性的ViewResult对象。如果你正在编写控制器操作的单元测试,则需为那些不采用字符串视图名称的单元测试...
分类:
其他好文 时间:
2014-05-01 13:34:10
阅读次数:
399
using System;using System.Data;using
System.Configuration;using System.Collections;using System.Web;using
System.Web.Security;using System.Web.UI;usin...
分类:
其他好文 时间:
2014-05-01 13:28:29
阅读次数:
274
using System;using System.Collections;using
System.Configuration;using System.Data;using System.Linq;using System.Web;using
System.Web.Security;using ...
分类:
其他好文 时间:
2014-05-01 13:25:21
阅读次数:
380
开发中遇到令人蛋疼的问题:只能在执行Render()的过程中调用RegisterForEventValidation当出现的异常的提示:异常详细信息:
System.InvalidOperationException:只能在执行Render()的过程中调用RegisterForEventValida...
分类:
其他好文 时间:
2014-05-01 13:16:15
阅读次数:
400
异常处理 运行时try{ 插卡 输入密码和金额 2000 余额 -= 2000 吐钱
2000}catch(吐钱异常 e){ 余额 += 2000}finally{ 取卡}异常的分类: Throwable Error:错误 严重底层 ...
分类:
其他好文 时间:
2014-05-01 13:01:14
阅读次数:
290
using System;using System.Collections.Generic;using
System.ComponentModel;using System.Co...
分类:
其他好文 时间:
2014-05-01 12:25:41
阅读次数:
390
Visual Studio 2005 移植 - WINVER,warning C4996,
error LINK1104一、WINVER Compile result: WINVER not defined. Defaulting to 0x0502
(Windows Server 2003) wi...
--MySQL里创建外键时错误的解决--------------------------------2014/04/30在MySQL里创建外键时(Alter
table xxx add constraint fk_xxx foreign key),提示错误,但只提示很简单的信息:ERROR 1005...
分类:
数据库 时间:
2014-05-01 11:53:13
阅读次数:
443
#用户 用户组 user www www;
#工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点 worker_processes 5; #错误日志 error_log
logs/error.log; #pid文件位置 pid ...
分类:
其他好文 时间:
2014-05-01 11:20:40
阅读次数:
431
windows下面可以主线程while loop接受input;但是觉得很丑。
linux没办法这样,可以用注册信号的办法。实现起来也不难:
#include "stdio.h"
#include "unistd.h"
#include "signal.h"
#include "error.h"
volatile bool isStop = false;
static void handl...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
418