ASPNETNewbie,
To answer your question, yes. The name is spelled correctly and is in the App_Code folder with the rest of the classes.
I'm still having trouble with this new ASP.NET 2.0 app. I'm getting the same error when I run it.
-----------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'OrderDetails' is not defined.
Source Error:
Line 31: End Sub
Line 32: Private Sub LoadGrid(ByVal iOrderID As Integer, ByVal iOrderID2 As Integer)
Line 33: Dim ds As New DataSet, ord As New OrderDetails
Line 34: ds = ord.GetOrderDetailsDataSet(iOrderID, iOrderID2)
Line 35: Session("GridOrderID") = iOrderID
-----------------------------------------------
In fact, When I click on 'Show Detailed Comiler Output' it says that for every class I have defined:
-----------------------------------------------
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
D:\Inetpub\TCHOLCIM.COM\ADMIN\associtems_grid.aspx.vb(26) : error BC30451: Name 'GetConnectionString' is not declared.
Private cs As String = GetConnectionString()
~~~~~~~~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\associtems_grid.aspx.vb(109) : error BC30451: Name 'DeleteRecord' is not declared.
Dim s As String = DeleteRecord(e.Item.Cells(0).Text, "AssocItems", "AssocItemsID")
~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\equip_grid.aspx.vb(31) : error BC30002: Type 'Grid' is not defined.
Dim grd As New Grid
~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\equip_grid.aspx.vb(32) : error BC30002: Type 'SubGroups' is not defined.
Dim sg As New SubGroups
~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\equip_grid.aspx.vb(39) : error BC30451: Name 'MessageBox' is not declared.
MessageBox.Show("Nothing to Delete!")
~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\equip_grid.aspx.vb(57) : error BC30002: Type 'SubGroups' is not defined.
Dim sg As New SubGroups
~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\orders_grid1.aspx.vb(33) : error BC30002: Type 'OrderDetails' is not defined.
Dim ds As New DataSet, ord As New OrderDetails
~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\orders_grid1.aspx.vb(60) : error BC30002: Type 'OrderDetails' is not defined.
Dim ord As New OrderDetails
~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\orders_grid1.aspx.vb(66) : error BC30002: Type 'OrderDetails' is not defined.
Dim ord As New OrderDetails, data As New OrderDetailsData
~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\orders_grid1.aspx.vb(66) : error BC30002: Type 'OrderDetailsData' is not defined.
Dim ord As New OrderDetails, data As New OrderDetailsData
~~~~~~~~~~~~~~~~
D:\Inetpub\TCHOLCIM.COM\ADMIN\rpc_admin.aspx.vb(49) : error BC30002: Type 'Orders' is not defined.
.
.
.
Etc.
---------------------------------------