• asp.net中转换web user control为custom web control


    ref:
    http://blogs.msdn.com/b/davidebb/archive/2005/10/31/turning-an-ascx-user-control-into-a-redistributable-custom-control.aspx

    1. 创建ascx控件:建立WEB站点,创建ascx用户控件,并完成相关功能,最好建立一个test page测试此ascx控件;
    2. 编译ASCX为DLL:发布此站点:发布选项取消:Allow this precompiled site to be updatable,勾上:'Use fixed naming and single page assemblies; 发布完成即可看到在bin目录下有dll文件;
    3. 使用此DLL中的控件:直接在新的WEB工程中引用编译好的DLL即可。
    4. 如果有多个ascx网页要做成控件,则使用web deployment project,需要从MS的站点上单独下载,然后此工程可以将所有DLL合并为一个,这样在其它工程中引用就很方便了。
  • 相关阅读:
    div3--C. Pipes
    Problem F Free Weights
    H
    Problem C Careful Ascent
    Problem L. World Cup
    Problem E. Bet
    Problem D. Ice Cream Tower
    A. Number Theory Problem
    A
    软考知识点梳理--项目评估
  • 原文地址:https://www.cnblogs.com/margiex/p/2008602.html
Copyright © 2020-2023  润新知