2010年5月4日

验证域账户的用户名和密码

摘要: //验证需要的方法。 public static bool IsAuthenticated(string domain, string username, string pwd) { string strPath = "LDAP://OU=People,DC=RCOMM,DC=local"; String domainAndUsername = domain + @"\" + username; ... 阅读全文

posted @ 2010-05-04 09:32 冰危节奏 阅读(2418) 评论(2) 推荐(0) 编辑

2010年4月22日

修改Web.Config里的值

摘要: public void Modify(string key, string value) { Configuration configuration = WebConfigurationManager.OpenWebConfiguration("~"); AppSettingsSection appSettingsSection = (AppSettingsSection)configurat... 阅读全文

posted @ 2010-04-22 14:00 冰危节奏 阅读(212) 评论(0) 推荐(0) 编辑

2010年4月21日

网页变灰的代码

摘要: 为表达全国各族人民对青海玉树地震遇难同胞的深切哀悼,国务院决定,2010年4月21日举行全国哀悼活动,全国和驻外使领馆下半旗志哀,停止公共娱乐活动。我们的网页变灰色<head>加到这里</head><style type="text/css">html { FILTER: gray}</style>部分牛站 不好用就用这个 我真服了你们的站点都是牛站... 阅读全文

posted @ 2010-04-21 13:15 冰危节奏 阅读(186) 评论(0) 推荐(0) 编辑

2010年4月20日

删除服务器的文件夹后,session就丢失的问题

摘要: 很大可能是因为你删除了目录后导致了应用程序的重启最简单的办法就是不要使用默认的方式也即InProc(默认,进程内的会话状态):Session存储在IIS进程中(Web服务器内存)。如果使用的是Windows 2000 Server或Windows XP,IIS使用aspnet_wp.exe进程,如果使用的是Windows 2003 Server,IIS使用w3wp.exe。InProc拥有最好的... 阅读全文

posted @ 2010-04-20 17:29 冰危节奏 阅读(730) 评论(0) 推荐(0) 编辑

网页设计像素的大小

摘要: 网页应该设计为多少像素才合适?默认分类 2008-06-25 10:54:06 阅读15 评论0 字号:大中小 引用志诚 的 网页应该设计为多少像素才合适? 许多的网页设计在进行网页布局设计时,进行界面网页的宽度尺寸设计都比较迷茫,800*600尺寸及1024*768尺寸的分辨率下,网页应该设计为多少像素才合适呢?太宽就会出现水平滚动条了,下面我们就网页设计的标准尺寸进行讲解. 网页设计标准尺寸:... 阅读全文

posted @ 2010-04-20 16:55 冰危节奏 阅读(5643) 评论(0) 推荐(0) 编辑

2010年4月19日

ASP.NET 取得 Request URL 的各个部分

摘要: 网址:http://localhost:1897/News/Press/Content.aspx/123?id=1#toc Request.ApplicationPath/ Request.PhysicalPathD:\Projects\Solution\web\News\Press\Content.aspx System.IO.Path.GetDirectoryName(Request.Phys... 阅读全文

posted @ 2010-04-19 17:34 冰危节奏 阅读(128) 评论(0) 推荐(0) 编辑

2010年4月15日

SQLServer 中使用变量

摘要: declare @addr varchar(128) set @addr = (select addr from chinadba1) 阅读全文

posted @ 2010-04-15 10:56 冰危节奏 阅读(189) 评论(0) 推荐(0) 编辑

循环遍历表变量

摘要: declare @temp table ( [id] int IDENTITY(1,1), [Name] varchar(10) ) declare @tempId int,@tempName varchar(10) insert into @temp values('a') insert into @temp values('b') insert into @temp values('c'... 阅读全文

posted @ 2010-04-15 10:51 冰危节奏 阅读(299) 评论(0) 推荐(0) 编辑

2010年4月12日

方法命名规范

摘要: 在面向对象的程序设计中,当程序较大时,会出现同一功能的方法被描写多次,想使用某方法时,却通过名字难以找到的情况,认为这是方法命名不规范的现象,本人推出一种方法命名的规则,以解决这个问题。 方法命名结构 类型+名称正文+_输入参数+_附加条件 类型: 1.读取结果集的用Read2.读取单一结果的用Get3.搜索的用Search4.判断某结果的用Is5.执行某功能的直接写 例: ReadPromo... 阅读全文

posted @ 2010-04-12 15:01 冰危节奏 阅读(575) 评论(0) 推荐(0) 编辑

2010年4月8日

js判断undefined类型

摘要: if (reValue== undefined){ alert("undefined"); } 发现判断不出来,最后查了下资料要用typeof 方法:if (typeof(reValue) == "undefined") { alert("undefined"); } typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"func... 阅读全文

posted @ 2010-04-08 10:56 冰危节奏 阅读(281583) 评论(13) 推荐(15) 编辑

导航