我在 c# 代码中为容器设置高度
public string Height34
{
get { return Convert.ToString(Settings["container"]); }
}
我在 ascx 页面中接收这些值,例如
height:<%= this.Height34 %>px;
当我运行它的错误时
错误:DNAiusTwitter 目前不可用。DotNetNuke.Services.Exceptions.ModuleLoadException:无法修改 Controls 集合,因为该控件包含代码块(即 <% ... %>)。---> System.Web.HttpException:无法修改Controls 集合,因为该控件包含代码块(即<% ... %>)。在 System.Web.UI.ControlCollection.Add(Control child) 在 DotNetNuke.Modules.DNAiusTwitter.View.Page_Load(Object sender, EventArgs e) 在 C:\Users\DNAius-3\Documents\Visual Studio 2010\WebSites\DotNetNukeverticalsliding \DesktopModules\DNAiusTwitter\View.ascx.cs:line 123 --- 内部异常堆栈跟踪结束 --- 因为我正在使用
this.Controls.Add(scriptTagLinks);