Try our conversational search powered by Generative AI!

creating User Controls in Episerver cms 7.5

Vote:
 

how can create user control in episerver 7.5

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).

Source Error:

Line 14: namespace EpiserverCMS8.Views.UserControls
Line 15: {
Line 16:     public partial class MainMenu : UserControlBase
Line 17:     {
Line 18:        protected override void OnLoad(System.EventArgs e)


Source File: d:\Joseph\EpiserverCMS8\EpiserverCMS8\Views\UserControls\MainMenu.ascx.cs    Line: 16 


#120714
Apr 23, 2015 8:47
Vote:
 

if know any one please tell me

#120718
Apr 23, 2015 9:09
Vote:
 

What do you have in MainMenu.ascx ?

Is it:

<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="MainMenu.ascx.cs" Inherits="EpiserverCMS8.Views.UserControls.MainMenu" %>

Or something else?

#120719
Apr 23, 2015 9:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.