无法在Web配置使用页中读取属性'tagName'为null的页面clientIDMode = Static

时间:2019-04-20 01:51:50

标签: javascript c# asp.net

当我在Web配置中使用页面clientIDMode = Static时,asp.net自动生成Sys.WebForms.Menu show无法读取null的属性'tagName'

<system.web>
      <compilation debug="true" targetFramework="4.6.1" />
      <httpRuntime targetFramework="4.6.1" />
      <pages clientIDMode="Static" />
</system.web>

自动生成

if (this.element.tagName === 'DIV') {
        var containerElement = this.element;
        this.element = Sys.WebForms.Menu._domHelper.firstChild(containerElement);
        this.element.tabIndex = options.tabIndex || 0;
        options.element = containerElement;
        options.menu = this;
        this.container = new Sys.WebForms._MenuContainer(options);
        Sys.WebForms.Menu._domHelper.setFloat(this.element, this.container.rightToLeft ? "right" : "left");
    }
    else {
        this.container = options.container;
        this.keyMap = options.keyMap;
    }

0 个答案:

没有答案