I keep getiing a Parser error when I try to view asp.net pages that contain code behind.
I created a basic aspx page but I still recieved the same error.
I'm not sure whether I have to set something in VS.Net, I'm loosing my mind because the error is so trivial.
Does anyone have any suggestions
--------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'testDoc'.
Source Error:
Line 1: <%@ Page Language="
vb" AutoEventWireup="false" Codebehind="testDoc.
vb" Inherits="testDoc" %>Line 2: <html>Line 3: <body>
HTML Code:
HTML
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="testDoc.vb" Inherits="testDoc" %>
<html>
<body>
<asp:Label ID="mydateTime" runat="server" />
</body>
</html>
Code:
Public Class testDoc
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
……………
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim mydate As Date = Now()
Dim mydateTime As Label
mydateTime.text = mydate
End Sub
End Class