04 2010 档案

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

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

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

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

删除服务器的文件夹后,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 冰危节奏 阅读(747) 评论(0) 推荐(0)

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

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

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 冰危节奏 阅读(141) 评论(0) 推荐(0)

SQLServer 中使用变量
摘要:declare @addr varchar(128) set @addr = (select addr from chinadba1) 阅读全文

posted @ 2010-04-15 10:56 冰危节奏 阅读(201) 评论(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 冰危节奏 阅读(307) 评论(0) 推荐(0)

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

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

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 冰危节奏 阅读(281696) 评论(13) 推荐(15)

包含框架的showmodaldialog窗口 访问打开者页面的JavaScript解决方案
摘要:打开者页面:(index.html) <script type="text/javascript" > function OpenDialog() { showModalDialog("dialog.html",window,"dialogWidth=700px;dialogHeight=400px;"); } function Changing() { document.getEl... 阅读全文

posted @ 2010-04-07 16:20 冰危节奏 阅读(1021) 评论(0) 推荐(0)

ie8下showmodaldialog页面回传会打开新页面的问题
摘要:在IE8下showmodaldialog页面不能够实现回传 一旦点击按钮,或者target为self的链接,会在一个新的窗口中打开页面,为了解决这个问题,只需要在showmodaldialog的页面上加一个Frame就可以了! 如下: <iframe name="god" src="001.htm" frameborder="0" height="400px" width="600px"&g... 阅读全文

posted @ 2010-04-07 16:02 冰危节奏 阅读(1361) 评论(0) 推荐(0)

使用VB打开某网站
摘要:Private Sub Form_Load() Shell "C:\Program Files\Internet Explorer\iexplore.exe" & Space(1) & "www.baidu.com", vbNormalFocus Unload MeEnd Sub 阅读全文

posted @ 2010-04-06 11:23 冰危节奏 阅读(409) 评论(0) 推荐(0)

导航