Search code examples
asp.netupdatepanel

how to tackle the error occurred in ajax update panel reference in MasterPage?


I created a masterpage named "site1" and inserted an updatepanel with a textbox and calendar. when I compile it, it gives error: The type name 'site1' does not exist in the type 'System.Web.UI.UpdatePanel' this is the following error:

Line 179:        }
Line 180:        
Line 181:        [TemplateContainer(typeof(Panel.Site1))]
Line 182:        [TemplateInstanceAttribute(System.Web.UI.TemplateInstance.Single)]
Line 183:        public virtual System.Web.UI.ITemplate Template_head 

Error occurs on line no. 181


Solution

  • Please check the name of your project and make sure it has no conflict with the already defined namespace in CLR or ASP.NET.