小编Jin*_* Ho的帖子

找不到SQL Server配置管理器

安装SQL Server 2008之后,我无法找到SQL Server Configuration ManagerStart / SQL Server 2008 / Configuration Tools菜单.

我该怎么做才能安装这个工具?

sql-server sql-server-2008 sql-server-2012 sql-server-config-manager

216
推荐指数
8
解决办法
28万
查看次数

如何使用jQuery设置outerHTML

我有一个UserControl.例如:

<div id="divItem">
some html
</div>
Run Code Online (Sandbox Code Playgroud)

ajax请求从服务器返回此UC的新html.例如:

<div id="divItem">
    new html
</div>
Run Code Online (Sandbox Code Playgroud)

我想用新的html替换旧的html.我怎么能这样做 谢谢.

javascript asp.net ajax jquery

27
推荐指数
2
解决办法
2万
查看次数

无法加载文件或程序集Autofac,Version = 3.3.0.0

将我的项目从Autofac 2.6.3.862升级到3.4.0.0后,出现以下错误.我甚至没有在解决方案的任何项目中添加对Autofac 3.3.0.0的任何引用.

=== Pre-bind state information ===
LOG: DisplayName = Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da
 (Fully-specified)
LOG: Appbase = file:///C:/Projects/Drive/temp/drive/Src/Web/
LOG: Initial PrivatePath = C:\Projects\Drive\temp\drive\Src\Web\bin
Calling assembly : Autofac.Configuration, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Projects\Drive\temp\drive\Src\Web\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da
LOG: Attempting download of new URL file:///c:/temp/root/79371609/925ee10/Autofac.DLL.
LOG: Attempting download of new URL …
Run Code Online (Sandbox Code Playgroud)

asp.net autofac assemblybinding

14
推荐指数
1
解决办法
1万
查看次数

如何使用Ioc Unity注入依赖项属性

我有以下课程:

public interface IServiceA
{
    string MethodA1();
}

public interface IServiceB
{
    string MethodB1();
}

public class ServiceA : IServiceA
{
    public IServiceB serviceB;

    public string MethodA1()
    {
        return "MethodA1() " +serviceB.MethodB1();
    }
}

public class ServiceB : IServiceB
{
    public string MethodB1()
    {
        return "MethodB1() ";
    }
}
Run Code Online (Sandbox Code Playgroud)

我使用Unity for IoC,我的注册看起来像这样:

container.RegisterType<IServiceA, ServiceA>(); 
container.RegisterType<IServiceB, ServiceB>(); 
Run Code Online (Sandbox Code Playgroud)

当我解析一个ServiceA实例时,serviceB将是null.我该如何解决这个问题?

c# ioc-container inversion-of-control unity-container property-injection

11
推荐指数
1
解决办法
3万
查看次数

Windows 批处理脚本 - 如何过滤具有定义扩展名的文件

我想在变量中定义扩展名的图像上做一些事情。以下脚本运行良好:

set AllowExt="jpg png bmp"
forfiles /p D:\Pictures /m *.* /c "cmd /c if not %AllowExt:jpg=% == %AllowExt% echo @file
Run Code Online (Sandbox Code Playgroud)

但以下脚本引发错误

set AllowExt="jpg png bmp"
forfiles /p D:\Pictures /m *.* /c "cmd /c if not %AllowExt:@ext=% == %AllowExt% echo @file"
Run Code Online (Sandbox Code Playgroud)

错误:无效的参数/选项 - 'png'。输入“文件/?” 用于使用。

windows for-loop cmd batch-file

2
推荐指数
1
解决办法
6894
查看次数

Javascript - 从$ .post回调后,实例类的属性未定义

我有以下js片段:

<script language="javascript">
          function test() {
            this.a = 10;
        };
        test.prototype.next = function () {
            alert('before: ' + this.a);
            $.ajax({
                url: 'some-url',
                async: true,
                type: 'POST',
                dataType: 'json',
                success: this.callback

            });
        };
        test.prototype.callback = function () {
            alert('after: ' + this.a);
        };

        $(document).ready(function () {
            var test1 = new test();
            test1.next();
        });
      </script>
Run Code Online (Sandbox Code Playgroud)

它总是产生结果:之前:10之后:undefine.

为什么在$ .post的回调函数中,类的属性是未定义的.谁能帮助我?非常感谢.

javascript jquery callback jquery-callback

1
推荐指数
1
解决办法
2618
查看次数