ASP.Net 2.0 frm2 Inherits frm1

G

Guest

Hi
with visual studio 2005 beta 2 i have created two form:
frm1 (Inherits System.Web.UI.Page)
frm2 (Inherits frm1)

but in the line code :
Inherits frm1
vs send error: type frm1 is not defined



***** frm1.aspx *****
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frm1.aspx.vb"
Inherits="frm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>frm1 Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>

***** frm1.aspx.vb *****
Partial Class frm1
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.TextBox1.Text = "Prova"
End Sub
End Class



***** frm2.aspx *****
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frm2.aspx.vb"
Inherits="frm2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>frm2 Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>


***** frm2.aspx.vb *****
Partial Class frm2
Inherits frm1 'error: type frm1 is not defined

End Class


Where is the error!
Thanks!!!
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top