Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to everyone,

I'm Converting asp.net 1.0 to 4.5 i'm using header as usercontrol while converting i'm getting this error. can anyone help me.

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)

<%@ Control Language="c#" AutoEventWireup="false" CodeFile="incidents_header.ascx.cs" Inherits="IncidentsWeb.incidents_header" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

Thanks
Prabhu
Posted
Updated 30-Sep-15 21:11pm
v3
Comments
F-ES Sitecore 1-Oct-15 5:21am    
The error is self-explanatory. Check that the incidents_header class inherits the appropriate UserControl class. It might be easier to create a new header control then just copy into it the mark-up and custom functions in the code-behind.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900