小编luc*_*cky的帖子

ASP.NET MVC:动态创建控件

这是控件构建器类......

public class ControlBuilder
{
    /// <summary>
    /// Html Control class for controlbuilder Control .
    /// </summary>
    protected HTMLControl formControl;

    /// <summary>
    /// Html Control class for the label.
    /// </summary>
    private HTMLControl labelControl;


    /// <summary>
    /// Getting the property for the Control .
    /// </summary>
    /// <history>
    /// [LuckyR] 10/8/2009 Created
    /// </history>
    public HTMLControl Form
    {
        get { return formControl; }
    }

    /// <summary>
    /// Creating a label for the Control.
    /// </summary>
    /// <history>
    /// [LuckyR] 10/8/2009 …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc controls dynamic

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

标签 统计

asp.net-mvc ×1

controls ×1

dynamic ×1