Click here to Skip to main content
15,882,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir...
I am facing some problems on preparing master pages with templates the code of one my page is adding below.. all pages have same errors


ASP.NET
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="repported_success.aspx.cs" Inherits="repported_success" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder5" Runat="Server">
<br />        <table align="center" cellpadding="0" cellspacing="0" style="width: 100%; background-image: removed('http://localhost:49178/NEW/images/mainbg.png'); background-removed: center top; background-repeat: no-repeat;">           
            <tr> <td>  </td> </tr>
            <tr> <td>  </td> </tr> 
            <tr class="text_style"> <td align="center">
                    Your complaint have been reported successfully.</td> </tr>
            <tr class="text_style"> <td align="center">
 You will receive a confirmation  mail and case number  by E mail at the earliest </td> </tr>
            <tr> <td> </td></tr>
            <tr> <td> <span class="heading2">                                  nbsp;   THANK YOU FOR USING THE ONLINE CRIME REPORTING WIZARD    </span> </td> </tr>
            <tr> <td>  </td> </tr>
            <tr> <td>  </td> </tr>
            <tr> <td>  </td> </tr>
            <tr> <td>  </td> </tr>
            <tr> <td>   </td> </tr> </table>



But Iam facing errors such as...

C#
Error	23	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).	D:\NEW\Site.master.cs	8	33	D:\NEW\
Error	24	d:\NEW\Site.master.cs(8): error 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).		
Error	25	d:\NEW\Site.master.cs(8): error 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).		
Error	26	d:\NEW\Site.master.cs(8): error 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).		
Error	27	d:\NEW\Site.master.cs(8): error 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).



can u help me???
Posted
v3
Comments
Post the code file contents as well.

1 solution

Make sure your repported_success.cs file has class name like follows:

C#
public partial class repported_success: System.Web.UI.Page
{
........
}
 
Share this answer
 
v3
Comments
[no name] 23-Dec-13 9:52am    
PageBase means??
[no name] 23-Dec-13 9:53am    
I just give it as
public partial class repported_success : System.Web.UI.Page
{
...........
}

is it wrong..??

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