I am doing everything right i think, but my system keeps throwing stupid errors and i could really do with fixing it, cos its stopping me develop.
I have had NO problem doing this, but today my system is playing up, anyone got any ideas
costingHelper.aspx.vb
1 Namespace Blah
2
3 Partial Public Class costingHelper
4
5 Inherits System.Web.UI.Page
6
7
8 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
9
10 End Sub
11
12 End Class
13
14 End Namespace
costingHelper.aspx
1 <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="costingHelper.aspx.vb" Inherits="Blah.costingHelper" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml" >
6 <head runat="server">
7 <title>Untitled Page</title>
8 </head>
9 <body>
10 <form id="form1" runat="server">
11 <div>
12
13 </div>
14 </form>
15 </body>
16 </html>
costingHelper.aspx.designer.vb
1 Option Strict Off
2 Option Explicit On
3
4
5
6 '''<summary>
7 '''costingHelper class.
8 '''</summary>
9 '''<remarks>
10 '''Auto-generated class.
11 '''</remarks>
12 Partial Public Class costingHelper
13
14 '''<summary>
15 '''form1 control.
16 '''</summary>
17 '''<remarks>
18 '''Auto-generated field.
19 '''To modify move field declaration from designer file to code-behind file.
20 '''</remarks>
21 Protected WithEvents form1 As Global.System.Web.UI.HtmlControls.HtmlForm
22 End Class
23
I have tried messing about with namespaces / no namespaces. Deleting Bin files etc but it comes up with the following error on Compile, even though the VB file inherits
Inherits System.Web.UI.Page
grr anyone got any ideas cheers
Error
Parser Error Message:
'Blah.costingHelper' is not
allowed here because it does not extend class
'System.Web.UI.Page'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="costingHelper.aspx.vb" Inherits="Blah.costingHelper" %> Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Source
File: /"folders removed"/Integration/costingHelper.aspx
Line: 1
Im sure it was working yesterday
Andrew