Custom control-- Error:System.Web.UI.UserControl' does not contain a definition for 'LoadCatalog ' a
2012-07-11 01:07
651 查看
Error: 'System.Web.UI.UserControl' does not contain a definition for 'LoadCatalog ' and no extension method 'LoadCatalog ' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)
When you use the custom control, you need to be careful with the designer. cs. You need to change this control property to your solution path.
Example:
protected global::XXX.Web.Controls.CatalogInfo ucCatalogInfo;
When you use the custom control, you need to be careful with the designer. cs. You need to change this control property to your solution path.
Example:
protected global::XXX.Web.Controls.CatalogInfo ucCatalogInfo;
相关文章推荐
- Type 'System.Web.UI.WebControls.Parameter' does not have a public property named 'DbType'
- Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies.解决方法
- Microsoft.Office.InfoPath.View' does not contain a definition for 'ExecuteAction
- 'Microsoft.Reporting.WebForms.ReportViewer' does not contain a definition for 'Reset'解决方法(转)
- Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, Public
- WPF error: does not contain a static 'Main' method suitable for an entry point
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels
- opencv2.0 源码安装 for x86 make出现error: 'ptrdiff_t' does not name a type 解决
- ERROR 1449 (HY000): The user specified as a definer ('root'@'%') does not exist
- Unity5打包Assetbundle 出错 `System.IO.File' does not contain a definition for `ReadAllBytes'
- Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. [SQLSTATE 28000] (Error 18452). The st
- error CS0117: `System.IO.File' does not contain a definition for `WriteAllBytes'
- C#编译问题'System.Collections.Generic.IEnumerable' does not contain a definition for 'Where' and no extension method 'Where' accepting a first argument
- Could not load file or assembly 'System.Web.Helpers...错误
- System.IO.File does not contain a definition for ReadAllBytes
- could not load file or assembly 'system.web.mvc version=1.0.0.0'
- Got error: 1449: The user specified as a definer ('root'@'%') does not exist
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels
- Unity does not contain a definition for "controller"
- Error: debugging information for project.exe' cannot be found or does not match. No symbols loade