【发布时间】:2013-04-09 02:11:33
【问题描述】:
最近我使用here 解释的类在PreInit 期间访问动态控件。该帖子的标题为“在 PreInit 期间访问 ASP.NET 页面控件”,在本地它运行良好,但在服务器上我收到以下错误:
Compiler Error Message: CS1031: Type expected
Source Error:
Line 12: /// in turn makes our controls accessible so that we can make the calls below.
Line 13: /// </remarks>
Line 14: public static void PrepareChildControlsDuringPreInit(this Page page)
Line 15: {
Line 16: // Walk up the master page chain and tickle the getter on each one
如果有人就这个问题给我解决方案或建议,我将不胜感激。
【问题讨论】:
标签: c# asp.net dynamic controls preinit