摘要: 使用Blend启动会有部分功能无法显示 如:SVN管理插件,工具栏 使用devenv启动会全部显示 阅读全文
posted @ 2016-05-13 11:09 TNTZWC 阅读(686) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Reflection;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ReflectToObject.ReflectToStudent(); //Console.ReadLine(); Console... 阅读全文
posted @ 2012-03-28 23:27 TNTZWC 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: internal class AccessSchema { private Field GetAccessField(string connectionString, string tbName, DataRow r) { Field field = new Field(); field.AllowNull = ObjectHelper.GetBool(r["IS_NULLABLE"]); field.DefaultValue = ObjectHelper.GetString(r["COLUMN_DEFAULT"]); field.FieldDescn 阅读全文
posted @ 2011-05-22 08:49 TNTZWC 阅读(266) 评论(0) 推荐(0) 编辑
摘要: internal class MySqlSchema { public bool GetSchema(Database database) { string str; string connectionString = database.ConnectionString; Match match = Regex.Match(connectionString, @"Database=(?<Database>[^\;]*);"); if (match.Success) { str = match.Groups["Database"].Value; 阅读全文
posted @ 2011-05-22 08:47 TNTZWC 阅读(175) 评论(0) 推荐(0) 编辑
摘要: internal class SqlSchema { private string SqlForGetStoreProcedures = "select distinct(name) from sysobjects where type='p' "; public string SqlForGetViews = "select distinct(name) from sysobjects where type='v' "; private Database.DatabaseType type; public bool Ge 阅读全文
posted @ 2011-05-22 08:43 TNTZWC 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 在装有vs2010的window7系统上运行vs2008的网站,会提示“错误代码 0x800700b7 配置错误定义了重复的“system.web.extensions/scripting/scriptResourceHandler””。这个问题原因在于window7的IIS默认用的是ASP.NET v4.0应用程序池。解决方法:新建一个ASP.NET v2.0的应用程序池。把vs2008的网站建在这个ASP.NET v2.0的应用程序池上就可以解决这个问题。 阅读全文
posted @ 2011-03-29 11:21 TNTZWC 阅读(1716) 评论(0) 推荐(0) 编辑
摘要: Sql 合并行如下:IDName1Tom1John2Carrier2Wendy1Rick要求显示下列结果IDName1Tom,John,Rick2Carrier,WendySql:select id,(SELECT STUFF(b.v.value('/r[1]','varchar(100)'),1,1,'')FROM(SELECT v=(SELECT ',' + Name FROM TableName where id=c.idFOR XML PATH(''),ROOT('r'),TYPE)) b) 阅读全文
posted @ 2011-03-28 16:42 TNTZWC 阅读(516) 评论(0) 推荐(0) 编辑
摘要: HTTP 错误 404.2 – Not Found. 由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面.详细错误:HTTP 错误 404.2 – Not Found. 由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面.出现环境:win7 + IIS7.5解决办法:IIS的根节点->右侧“ISAPI和CGI限制”->把禁止的DotNet版本项设置为允许,即可 阅读全文
posted @ 2011-03-24 09:27 TNTZWC 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 在visual studio tools\visual studio 命令行执行 aspnet_regiis -i 阅读全文
posted @ 2011-03-23 16:01 TNTZWC 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 原帖地址:http://community.csdn.net/Expert/topic/5030/5030429.xml?temp=1.928347E-02一直以来用户非正常退出系统 即:用户按右上角的 X 按纽后服务器端 session 无法销毁! 一直要等到其过期时间到了才销毁 这样通过session进行在线人数统计就无法准确了!我今天试了才发现 其实关闭浏览器事件可以捕捉到的 那么我们就可以在关闭事件里调用Session.Abandon();了(我下面这个例子特别适合页面是框架结构信息管理系统,因为这个样的结构都有一个公用的主框架页面)废话少说!说正题!main.aspx1、<bo 阅读全文
posted @ 2011-03-16 08:47 TNTZWC 阅读(372) 评论(0) 推荐(0) 编辑