- 博客(91)
- 收藏
- 关注
转载 ForEach
class Program { static void Main() { int index = 0; List<String> names = new List<String>(...
2018-01-07 15:50:00
142
转载 Ngen.exe
本机影像生成器(Ngen.exe)工具使用实践 先介绍一点背景知识;.Net程序在运行时会实时(JIT)编译,将.Net程序文件编译成cpu认识的汇编机器码。实时编译需要消耗额外的cpu和内存资源,这对于服务器端程序是无关紧要的,因为实时编译只在程序第一次运行时编译,之后就不需要再做了;如果...
2017-03-28 21:19:00
140
转载 Test Authoring and Execution Framework(TAEF)
1. Download ”windows driver kit 10” for windows 10 (I can’t download it in the office) 2. run cmd and cd %programfiles%\Windows Kits\8.0\Testing\Ru...
2017-03-28 21:08:00
165
转载 VS 开发Angular 配置
新建项目->联机->Angular2VisualStduioTemplete 安装这个模块 使用这个模块新建项目,在 Nuget中安装angularJS和angular Core最新包 第一次编译 会下载node_modules 这个目录,AngularJS app.com...
2017-03-25 16:52:00
202
转载 MVC自定义验证信息
public class MaxWordsAttribute: ValidationAttribute { private readonly int _maxMords; public MaxWordsAttribute(int maxMords):ba...
2017-03-06 21:46:00
100
转载 jquery的grep,match 方法
jQuery.grep(array, callback,[invert]) array:待过滤数组。 callback:此函数将处理数组每个元素。第一个参数为当前元素,第二个参数而元素索引值。此函数应返回一个布尔值。 invert:如果 "invert" 为 false 或为设置,则函...
2017-03-05 15:35:00
234
转载 部分视图跳转
var album = GetDailyDeal(); return PartialView("_DailyDeal", album); 通过NuGet需要添加microsoft.jquery.unobtrusive.ajax 方法一 在BundleConfig.cs 里添加 bu...
2017-03-05 15:35:00
67
转载 iis 创建sql的session state
@# 2.web.config 修改 <sessionState cookieless="UseCookies" mode="SQLServer" sqlCommandTimeout="604800" sqlConnectionString="data source=.;user id=...
2017-03-05 15:35:00
126
转载 ajax.net updatepanel 中数据量过大导致 500 错误
转载于:https://my.oschina.net/xuyuchends/blog/852128
2017-03-05 15:35:00
86
转载 IEnumerable IList List区别
转载于:https://my.oschina.net/xuyuchends/blog/852131
2017-03-05 15:35:00
118
转载 模板页Section设置
母版页@RenderSection("head", required: false) 内容页@section head { <script type="text/javascript" src="@Url.Content("~/scripts/AjaxDem...
2017-03-05 15:35:00
114
转载 label标签for的作用
<label for="name">Name</label> <input id="name" type="text" name="name" /></li> <li><input id="Submit" type="submi...
2017-03-05 15:35:00
162
转载 virtual和abstract 方法的区别
相同点: 虚方法(virtual)和抽象方法(abstract)都可以被派生类重写 不同点: 1.虚方法(virtual)有方法实体,抽象方法(abstract)没有方法实体【类似接口】 virtual void SayWord() { //代码 } abstract voi...
2017-03-05 15:35:00
82
转载 jquery div 交换
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script src="h...
2017-03-05 15:35:00
100
转载 数据库连接
GuestbookContext" connectionString="server=.;database=Guestbook;uid=sa;pwd=qwe123!@#" providerName="System.Data.SqlClient" /> 2.创建DbContext,类的名字...
2017-03-05 15:35:00
63
转载 jQuery的图片预加载函数
1 (function($) { var cache = []; // Arguments are image paths relative to the current page. $.preLoadImages = func...
2017-03-05 15:35:00
80
转载 检查checkbox是否被选中
$('input:checkbox').each(function () // 循环每个checkbox parseInt($(this).val();// 计算 check box的值 sample <!DOCTYPE htm...
2017-03-05 15:35:00
83
转载 ajax 添加评论
@model IEnumerable<string> @section head { <script type="text/javascript" src="@Url.Content("../../scripts/ajaxdemo.js")"></script&g...
2017-03-05 15:35:00
115
转载 reporting service PDF中每页显示标题
转载于:https://my.oschina.net/xuyuchends/blog/852145
2017-03-05 15:35:00
145
转载 跨服务器连接数据库
@server = N'192.168.1.102\SQLEXPRESS', @srvproduct=N'SQL Server' ; GO --把数据库加到本地的类似连接池里. select * from [192.168.1.102\SQLEXPRESS].Buffalos.dbo.Menu...
2017-03-05 15:35:00
119
转载 配置权限访问
filters.Add(new AuthorizeAttribute()); filters.Add(new HandleErrorAttribute()); } 如果需要过滤角色才能访问还需要添加 public static void RegisterGlobalFilters(Global...
2017-03-05 15:35:00
98
转载 html5控件
sample My name is:<input type="text" id="name" name="name" required> required 指明它是必填项 My email address is: <input type="email" id="ema...
2017-03-05 15:34:00
54
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅