user275111
user275111

Reputation: 31

in vb.net an error is coming

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).

in vb code-i used namespace and a class.

Upvotes: 0

Views: 82

Answers (1)

Fredrik Mörk
Fredrik Mörk

Reputation: 158289

The Inherits attribute in the Page directive of the aspx page must point to a class that implements the code-behind logic. If you have used extra namespaces, you will need to supply the fully qualified type name, so that it matches:

Inherits="The.Full.Namespace.Path.TheClassName"

Upvotes: 1

Related Questions