Novato perdido > Erro no Inherits eu acho .netC#
salve forenses!
Estou com um problema aqui na hora de rodar um formulario feito em .net c#
na hora de rodar da esse erro no .cs
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 12:
Line 13:
Line 14: public partial class Cadastro : System.Web.UI.Page
Line 15: {
Line 16:
na pagina aspx temos o seguinte código:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cadastro.aspx.cs" Inherits="Cadastro" MaintainScrollPositionOnPostback="true" %>
já na página .cs onde o erro é acusado, temos o seguinte:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Cadastro : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Pessoal, espero que seja bem simples pois eu não consigo passar deste erro desde as 9:00 da manha.
Obrigado!
Discussão (1)
Carregando comentários...