Gutirez
R12 Studing

文章分类 -  .NET

.NET, C#
The web server process that was being debugged has been terminated by Internet Information Services (IIS)
摘要:ASP.net调试出现进程被打断问题的调整方法操作环境:Windows 7 + vs2010 + iis7调试web项目时,监控某个数据,过一会它会自动跳出调试模式,弹出窗口,内容如下:The web server process that was being debugged has been terminated by Internet Information Services (IIS). This can be avoided by configuring Application Pool ping settings in IIS. See help for further detai 阅读全文
posted @ 2014-02-12 09:26 Gutirez 阅读(170) 评论(0) 推荐(0)
Sys.WebForms.PageRequestManagerTimeoutException
摘要:Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerTimeoutException: 服务器请求超时。 分类: asp 2012-04-20 13:21 1940人阅读 评论(0) 收藏 举报microsoft服务器Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerTimeoutException: 服务器请求超时。这是一个请求超时的错误,等到时间超过预计时间产生的错误,也就是说你程序在加载上耗费了很长的时间。决绝方法请设置 ScriptManager 控件的 Async 阅读全文
posted @ 2014-02-12 09:24 Gutirez 阅读(182) 评论(0) 推荐(0)
C#中遍历各类数据集合的方法
摘要:C#中遍历各类数据集合的方法总结:1.枚举类型//遍历枚举类型Sample的各个枚举名称foreach(stringspinEnum.GetNames(typeof(Sample))){ary.Add(sp);}//遍历枚举类型Sample的各个枚举值foreach(stringspinEnum.GetValues(typeof(Sample))){ary.Add(sp);}2.遍历ArrayList(Queue、Stack)这里以string为例,当然ArrayList中的元素可以是任何数据类型,遍历时须确认ArrayList中的元素都是同一数据类型。//遍历元素为string类型的队列fo 阅读全文
posted @ 2013-07-12 10:48 Gutirez 阅读(168) 评论(0) 推荐(0)
DataTable与数组相互转换
摘要:DataTable与数组相互转换using System;using System.Data;using System.Data.OleDb;namespace pxkt_datatable{class pxkt{ public pxkt() { string[] g = new string[10]; for(int i=0;i /// DataTable转换为一维字符串数组 /// /// public static string[] dtToArr1(DataTable dt) { if (dt == null || dt.Rows.Count == 0) return new st.. 阅读全文
posted @ 2013-07-12 10:40 Gutirez 阅读(1136) 评论(0) 推荐(0)
步步为营 .NET三层架构解析 二、数据库设计
摘要:http://www.cnblogs.com/springyangwc/archive/2011/03/22/1991773.html 要开发用户管理系统,我们首先要了解需求,现在就举一个简单需求,用户表,假设有两种角色用一个字段departID来判断,管理员和员工,我们要先建一个用户表custom和一个部门表department:view sourceprint?CREATE TABLE [dbo].[custom]([id] [int] IDENTITY(1,1) NOT NULL,[cname] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT . 阅读全文
posted @ 2011-06-25 20:44 Gutirez 阅读(114) 评论(0) 推荐(0)
步步为营 .NET三层架构解析 一、什么是三层架构
摘要:http://www.cnblogs.com/springyangwc/archive/2011/03/21/1990664.html在项目开发的过程中,有时把整个项目分为三层架构,其中包括:表示层(UI)、业务逻辑层(BLL)和数据访问层(DAL)。三层的作用分别如下: 表示层:为用户提供交互操作界面,这一点不论是对于Web还是WinForm都是如此,就是用户界面操作。我们网站展示给用户看的界面。 业务逻辑层:负责关键业务的处理和数据的传递。复杂的逻辑判断和涉及到数据库的数据验证都需要在此做出处理。根据传入的值返回用户想得到的值,或者处理相关的逻辑。 数据访问层:见名知意,负责数据库数据的访 阅读全文
posted @ 2011-06-25 20:42 Gutirez 阅读(139) 评论(0) 推荐(0)