Hi, the following is the code from the top of my Default.aspx.
vb file if it helps make thing clearer:
************************************************** *********************
Imports System.Web.Caching
Imports System.DateTime
Imports WroxUnited1
Namespace Wrox
Public Class DefaultCodeBehind
Inherits System.Web.UI.Page
Public DateList As New System.Collections.Hashtable
' Public Data As New DataAccessCode <-- this is the offending line
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents lnkTeams As System.Web.UI.WebControls.HyperLink
Protected WithEvents lnkPlayers As System.Web.UI.WebControls.HyperLink
Protected WithEvents lnkGames As System.Web.UI.WebControls.HyperLink
Protected WithEvents lnkResults As System.Web.UI.WebControls.HyperLink
Protected WithEvents EventCalendar As System.Web.UI.WebControls.Calendar
Protected WithEvents MatchesByDateList As System.Web.UI.WebControls.Repeater
Protected WithEvents pnlFixtureDetails As System.Web.UI.WebControls.Panel
Protected WithEvents lblRegister As System.Web.UI.WebControls.Label
Protected WithEvents txtEmailAddress As System.Web.UI.WebControls.TextBox
Protected WithEvents btnRegister As System.Web.UI.WebControls.Button
Protected WithEvents ValidEmail As System.Web.UI.WebControls.RegularExpressionValidat or
Protected WithEvents lnkMerchandise As System.Web.UI.WebControls.HyperLink
Protected WithEvents lnkChat As System.Web.UI.WebControls.HyperLink
Protected WithEvents btnApplyTheme As System.Web.UI.WebControls.Button
Protected WithEvents chkRememberStylePref As System.Web.UI.WebControls.CheckBox
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Etc.
************************************************** **************************
Any help will be appreciated.
Edward.