• [转贴]不能显示树型或树控件使用不正常的解决办法


    1.确保你的IE在5.5版本以上 否则不支持树控件

    2.并在开始菜单---> 运行中输入cmd ---> 按回车---> 输入以下命令

    D:\WINNT\Microsoft.NET\Framework\v1.0.3705\csc.exe /out:build\Microsoft.Web.UI.WebControls.dll


    ps:D:\WINNT\Microsoft.NET\Framework\v1.0.3705\csc.exe代表csc文件所在目录
        如果你的系统装在C盘上那么去C盘相应目录上查找csc.exe文件并取得其所在目录
       
    3.  一般默认安装完树控件后 都会安装在 Program Files\Microsoft Internet Explorer WebControls下
       你运行完 注册命令后 会 产生  \build\Runtime 目录  
      下面有 images 、treeimages  等文件夹和文件
       在wwwroot下创建 webctrl_client\1_0 目录 然后把Runtime下所有东西copy到webctrl_client\1_0下
    ================以下是微软提供的安装树控件的步骤=================


    1. Verifies that IIS V5.0 or later is installed.

    2. Creates the following directory:

    "C:\Program Files\Microsoft Internet Explorer WebControls"

    and copies Microsoft.Web.UI.WebControls.dll to the directory.

    Note: The folder is created on the disk being used by the operating
    system (OS). The "C" drive may not be used for the OS on all machines.

    3. Microsoft.Web.UI.WebControls.dll is installed into the Global
    Assembly Cache

    4. Adds a link to the MSDN WebControls documentation to the Programs
    Menu.

    5. The following directories are added below the Root Web:

    webctrl_client\1_0\
    webctrl_client\1_0\images
    webctrl_client\1_0\treeimages
    webctrl_client\1_0\treeimages\rtl

    6. Copies the HTC files (Behaviors)

    The HTML Components files implementing the behaviors are copied to the
    "webctrl_client\1_0\" folder below the Root Web folder.

    These behaviors can be used in Internet Explorer 5.5 and later
    versions, and are used automatically by the IE WebControls in ASP.NET
    WebForms.

    7. Copies images to the following paths:

    Images used by the WebControls: "webctrl_client\1_0\images"

    Images for the TreeView: "webctrl_client\1_0\treeimages"

    Right-to-left images for the TreeView:
    "webctrl_client\1_0\treeimages\rtl"

    8. Creates the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\
      AssemblyFolders\IEWebControls

    The default string value of this key is set to the folder where
    Microsoft.Web.UI.WebControls.dll was installed, which is usually
    "C:\Program Files\Microsoft Internet Explorer WebControls"

  • 相关阅读:
    用SQL SERVER取分组数据第一条:查出每个班级的成绩第一名
    [转]spring beans.xml
    [转]为什么要使用框架
    MySQL 5.6 for Windows 解压缩版配置安装
    [转]hql 语法与详细解释
    [转]slf4j + log4j原理实现及源码分析
    [转]最详细的Log4j使用教程
    yii2 checkbox 的使用实例
    Magento Order 状态详解
    yii2 设置多个入口文件
  • 原文地址:https://www.cnblogs.com/goody9807/p/187940.html
Copyright © 2020-2023  润新知