×

欢迎光临,有什么想法就留言告诉我吧!

你的精彩评论可能会出现在这里哦! 留言抢沙发

ASP.NET + C#

让你的.NET程序兼容不同版本的Dll文件

管理员 管理员 发表于2012-03-10 浏览3261 评论0

前段时间写的一个winform的.net程序。因为引用了不少的库文件,但是最近这些库文件因为修正了一些bug和算法。但是主的程序文件没有怎么改动。所以就不像把这个主程序重新编译了。于是就把所有的新版dll文件拷贝到运行目录下,希望主程序能够直接调用新版的库文件。结果发现原来这些库文件都用strong name签了名的。主程序一调用就出错,说找不到该版本的文件。

Windows Server

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

管理员 管理员 发表于2011-04-07 浏览3330 评论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即可。

...

ASP.NET + C#

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

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

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

JavaScript 脚本

jQuery 操作iframe

管理员 管理员 发表于2010-11-02 浏览2994 评论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
       }