×

Windows Server

XP 下安装IIS5.1 能启动运行 html,.aspx 文件,但不能运行 .asp 文件

管理员 管理员 发表于2011-04-07 浏览3410 评论0

两种方法。

方法一 (试过可行)、

1. 运行:regsvr32 %windir%/system32/vbscript.dll (其实这一步也可以省,确保万一,还是执行吧) 
2. 运行:msdtc -resetlog 
3. 重新安装IIS

 注释: 1. 微软只随IIS5提供了一个管理脚本adsutil.vbs,这个脚本位于C:\inetpub\adminscripts子目录下,首先注册vbscript.dll。 2. msdtc.exe是微软分布式传输协调程序。该进程调用系统Microsoft Personal Web Server和Microsoft SQL Server,该服务用于管理多个服务器,必须确保该服务正常启动。(1)控制面板->管理工具->组件服务(2)找到“组件服务”->“计算机”->“我的电脑”->“COM+应用程序”->“IIS Out-Of-Process Pooled Applications” 3. 如果找不到“IIS Out-Of-Process Pooled Applications”,或在点击不能打开“COM+应用程序”,执行完“msdtc -resetlog”后,重新安装IIS即可。

...

NET + C#

IIS中,当文件夹被删除时,防止应用程序重启的解决办法

管理员 管理员 发表于2011-03-03 浏览3641 评论0

如果你曾经修改了ASP.NET应用程序(dll文件),与修改了bin文件夹或Web.config文件(添加/删除/重命名的文件等),而该网 站在运行,你可能已经注意到,这将导致在AppDomain的重新启动。所有的会话状态会丢失和网站再次成功启动,任何登录的用户将被退出(假设你不使用 持久Cookie身份验证)。 当然,当我们修改了web.config文件,并保存它,迫使一个AppDomain重新

JavaScript 脚本

jQuery 操作iframe

管理员 管理员 发表于2010-11-02 浏览3068 评论0

父操作子ifame
function parentOperateSon() {
          alert( $('#div1', frames['iframe1'].document).html() );    //方法1
          $('#iframe1').contents().find('#div1').html("父操作子");    //方法2
          alert( $(window.frames["iframe1"].document).find("#div1").html() ); //方法3
       }
子iframe操作父
      function SonOperateParent() {
          $(parent.document).contents().find('#hello').html('ifram1父元素');   //方法1
          $(top.document).contents().find('#hello').html('ifram1父元素');    //方法2
          $(window.parent.document).contents().find('#hello').html('ifram1父元素');   //方法3
       }
子iframe操作子iframe、兄弟框架
      function SonOprateOtherSon() {
          $('#iframe2', top.document.body).contents().find('#div1').html('ifram1操作iframe2');   //方法1
          $('#iframe2', parent.document.body).contents().find('#div1').html('ifram1操作iframe2');    //方法2
          $('#iframe2', window.parent.document.body).contents().find('#div1').html('ifram1操作 iframe2');   //方法3
       }父操作子ifame
function parentOperateSon() {
          alert( $('#div1', frames['iframe1'].document).html() );    //方法1
          $('#iframe1').contents().find('#div1').html("父操作子");    //方法2
          alert( $(window.frames["iframe1"].document).find("#div1").html() ); //方法3
       }
子iframe操作父
      function SonOperateParent() {
          $(parent.document).contents().find('#hello').html('ifram1父元素');   //方法1
          $(top.document).contents().find('#hello').html('ifram1父元素');    //方法2
          $(window.parent.document).contents().find('#hello').html('ifram1父元素');   //方法3
       }
子iframe操作子iframe、兄弟框架
      function SonOprateOtherSon() {
          $('#iframe2', top.document.body).contents().find('#div1').html('ifram1操作iframe2');   //方法1
          $('#iframe2', parent.document.body).contents().find('#div1').html('ifram1操作iframe2');    //方法2
          $('#iframe2', window.parent.document.body).contents().find('#div1').html('ifram1操作 iframe2');   //方法3
       }

项目相关

WEB前端开发规范文档

管理员 管理员 发表于2010-10-21 浏览2999 评论0

为新项目写的一份规范文档,分享给大家.我想前端开发过程中,无论是团队开发,还是单兵做站,有一份开发文档做规范,对开发工作都是很有益的。本文档由本人编写,部分意见来源于网络, 以此感谢,片面及有误的地方,希望大家指正。另本文档部分规范是为我所在项目组所写,使用时请根据实际项目需求修改。
以下为[WEB前端开发规范文档]正文

规范目的

为提高团队协作效率,便于后台人员添加功能及前端后期优化维护,输出高质量的文档,特制订此文档。本规范文档一经确认,前端开发人员必须按本文档规范进行前台页面开发。本文档如有不对或者不合适的地方请及时提出,经讨论决定后方可更改。

基本准则

符合web标准,语义化html,结构表现行为分离,兼容性优良。页面性能方面,代码要求简洁明了有序,尽可能的减小服务器负载,保证最快的解析速度。

NET + C#

web.cofig和Global.asax之间的关系以及执行的顺序

管理员 管理员 发表于2010-10-14 浏览3166 评论0

1 Global.asax文件的作用

先看看MSDN的解释,Global.asax 文件(也称为 ASP.NET 应用程序文件)是一个可选的文件,该文件包含响应 ASP.NET 或HTTP模块所引发的应用程序级别和会话级别事件的代码。Global.asax 文件驻留在 ASP.NET 应用程序的根目录中。运行时,分析 Global.asax 并将其编译到一个动态生成的 .NET Framework 类,该类是从HttpApplication基类派生的。配置 ASP.NET,以便自动拒绝对 Global.asax 文件的任何直接的 URL 请求;外部用户不能下载或查看其中的代码。Global.asax 文件是可选的。只在希望处理应用程序事件或会话事件时,才应创建它.

2 Global.asax文件的创建

点击Web站点>>添加新建项>>全局应用程序类,即可添加Global.asax文件。在.Net2003里,直接右击Global.asax文件查看代码就可以编辑Global.asax.cs文件,但是在.Net2005中,没有这个选项,因此需要自己在App_Code中添加Global.asax.cs,然后设置Global.asax的属性Inherits="Global"或CodeBehind="Global.asax.cs"即可。不可知道还有没有其他更好的方法。

XP_iis5 Server Application Error解决办法

Windows Server

XP_iis5 Server Application Error解决办法

管理员 管理员 发表于2010-09-29 浏览6464 评论1

Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

CSS书写

IE中line-height的bug

管理员 管理员 发表于2010-09-25 浏览3461 评论0

BUG症状:当在一个容器里文字和img、input、textarea、select、object等元素相连的时候,对这个容器设置的line-height数值会失效;
解决方法:  对和文字相连接的img、input、textarea、select、object等元素加以属性:<style type="text/css">
.input{
margin: (所属line-height-自身高度)/2px 0;
vertical-align:middle;
}
</style>