【问题标题】:Adding User Control instead of EditForm.aspx in designer在设计器中添加用户控件而不是 EditForm.aspx
【发布时间】:2012-08-31 16:35:59
【问题描述】:

您好,我正在尝试添加我的用户控件而不是 EditForm.aspx(使用 sharepoint 2007)我添加了一个新的 aspx 页面并注册了我的 dll。但现在我不知道如何进行。 此外,在我的项目中,我有一个包含以下代码的 cs 文件。 公共类 SkillEditReg : WebPart { 私有控件_MyUserControl;

    protected override void CreateChildControls()
    {
        base.CreateChildControls();
        _MyUserControl =
            this.Page.LoadControl(@"~/_controltemplates/MySkill/EditSkill.ascx");
        this.Controls.Add(_MyUserControl);

    }

我尝试将其注册为我在下面链接中提到的功能 http://fusionovation.com/post/2008/09/18/how-to-add-a-custom-user-control-to-a-sharepoint-page.aspx 我已将 guid id 放入功能 id.. 并将程序集的 publictoken 放入元素 id。 在设计师的 contolId 中,我输入了用户控件名称..但没有任何效果.. 请帮忙

【问题讨论】:

    标签: asp.net sharepoint sharepoint-2010 sharepoint-2007 moss


    【解决方案1】:

    太简单了..我所做的只是隐藏editform.aspx的webpart并通过浏览器进入同一页面,它是空的,然后我编辑了url,在EditForm.aspx之后?我添加了 toolpaneview=2。它以编辑模式打开,然后我添加了我的 dll :)

    【讨论】:

      猜你喜欢
      • 2019-02-02
      • 1970-01-01
      • 2010-09-22
      • 1970-01-01
      • 1970-01-01
      • 2011-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多