Error: Could not load type 'login_page'

Q

qluo

I got the following error:
---------------------------
Parser Error Message: Could not load type 'login_page'.

Line 1: <%@ Page Language="vb" Codebehind="login.vb"
Inherits="login_page" %>
----------------------------

My login.vb file is the following:

------------------------------------
Option Strict Off

Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls

Public Class login_page : Inherits Page
Public username As TextBox
Public password As TextBox
Public submit As Button
Public test As Label

Sub page_load(ByVal sender As Object, ByVal e As EventArgs)
If Page.IsPostBack = False Then
test.Text = "username: "
End If
End Sub

Sub submit_click(ByVal sender As Object, ByVal e As EventArgs)
test.Text = "username: " & username.Text
End Sub
End Class
 
Q

qluo

I have built the project successfully.

But when I step into it, I got the error: "Unable to start debugging the
project on the Web server. Catastrophical failure."

Also, when I initially created login.aspx, an login.aspx.vb was created.
I deleted it and created login.vb instead.

In project explorer, I don't see login.vb, but in class view, I see
login_page class.

Will this be helpful?

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top