CStack
04-29-2007, 02:23 AM
I get this error when trying to access my default.aspx page.
Compiler Error Message: BC30451: Name 'Company' is not declared.
Source Error:
Line 5:
Line 6: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 7: lblCompanies.Text = Company.GetCompanyCount().ToString()
Line 8: lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
Line 9: lblResumes.Text = [Resume].GetResumeCount().ToString()Source File: E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb Line: 7 c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc. exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_global.asax.bjsw_ hc7.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2 .0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03 f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3 .0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Code.rt_frun7.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b7 7a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5 c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serial ization\3.0.0.0__b77a5c561934e089\System.Runtime.S erialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b 77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0. 0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\ 3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0 .0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServic es\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServ ices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\ 2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collec tions,System.Collections.Specialized,System.Config uration,System.Text,System.Text.RegularExpressions ,System.Web,System.Web.Caching,System.Web.SessionS tate,System.Web.Security,System.Web.Profile,System .Web.UI,System.Web.UI.WebControls,System.Web.UI.We bControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.6.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.10.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.7.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.8.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.11.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.9.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.12.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.5.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.4.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.2.vb"
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.
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(1) : warning BC40056: Namespace or type specified in the Imports 'JobSiteStarterKit.BOL' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports JobSiteStarterKit.BOL
~~~~~~~~~~~~~~~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(7) : error BC30451: Name 'Company' is not declared.
lblCompanies.Text = Company.GetCompanyCount().ToString()
~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(8) : error BC30451: Name 'JobPosting' is not declared.
lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
~~~~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(9) : error BC30451: Name 'Resume' is not declared.
lblResumes.Text = [Resume].GetResumeCount().ToString()
~~~~~~~~
<CODE>Line 1: #ExternalChecksum("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx","{406ea660-64cf-4c82-b6f0-42d48172a799}","8AB9E22A095AEC521926BB44A5DB9A09")
Line 2: '------------------------------------------------------------------------------
Line 3: ' <auto-generated>
Line 4: ' This code was generated by a tool.
Line 5: ' Runtime Version:2.0.50727.42
Line 6: '
Line 7: ' Changes to this file may cause incorrect behavior and will be lost if
Line 8: ' the code is regenerated.
Line 9: ' </auto-generated>
Line 10: '------------------------------------------------------------------------------
Line 11:
Line 12: Option Strict Off
Line 13: Option Explicit On
Line 14:
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System
Line 17: Imports System.Collections
Line 18: Imports System.Collections.Specialized
Line 19: Imports System.Configuration
Line 20: Imports System.Text
Line 21: Imports System.Text.RegularExpressions
Line 22: Imports System.Web
Line 23: Imports System.Web.Caching
Line 24: Imports System.Web.Profile
Line 25: Imports System.Web.Security
Line 26: Imports System.Web.SessionState
Line 27: Imports System.Web.UI
Line 28: Imports System.Web.UI.HtmlControls
Line 29: Imports System.Web.UI.WebControls
Line 30: Imports System.Web.UI.WebControls.WebParts
Line 31:
Line 32:
Line 33: Partial Public Class Statistics
Line 34:
Line 35:
Line 36: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 37: Protected WithEvents Label4 As Global.System.Web.UI.WebControls.Label
Line 38:
Line 39: #End ExternalSource
Line 40:
Line 41:
Line 42: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 43: Protected WithEvents Label1 As Global.System.Web.UI.WebControls.Label
Line 44:
Line 45: #End ExternalSource
Line 46:
Line 47:
Line 48: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 49: Protected WithEvents lblJobs As Global.System.Web.UI.WebControls.Label
Line 50:
Line 51: #End ExternalSource
Line 52:
Line 53:
Line 54: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 55: Protected WithEvents Label2 As Global.System.Web.UI.WebControls.Label
Line 56:
Line 57: #End ExternalSource
Line 58:
Line 59:
Line 60: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 61: Protected WithEvents lblResumes As Global.System.Web.UI.WebControls.Label
Line 62:
Line 63: #End ExternalSource
Line 64:
Line 65:
Line 66: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 67: Protected WithEvents Label3 As Global.System.Web.UI.WebControls.Label
Line 68:
Line 69: #End ExternalSource
Line 70:
Line 71:
Line 72: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 73: Protected WithEvents lblCompanies As Global.System.Web.UI.WebControls.Label
Line 74:
Line 75: #End ExternalSource
Line 76:
Line 77: Protected ReadOnly Property Profile() As ProfileCommon
Line 78: Get
Line 79: Return CType(Me.Context.Profile,ProfileCommon)
Line 80: End Get
Line 81: End Property
Line 82:
Line 83: Protected ReadOnly Property ApplicationInstance() As ASP.global_asax
Line 84: Get
Line 85: Return CType(Me.Context.ApplicationInstance,ASP.global_as ax)
Line 86: End Get
Line 87: End Property
Line 88: End Class
Line 89:
Line 90: Namespace ASP
Line 91:
Line 92: <System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()> _
Line 93: Public Class usercontrols_statistics_ascx
Line 94: Inherits Global.Statistics
Line 95:
Line 96: Private Shared __initialized As Boolean
Line 97:
Line 98: Public Sub New()
Line 99: MyBase.New
Line 100:
Line 101: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb",912304)
Line 102: CType(Me,System.Web.UI.UserControl).AppRelativeVir tualPath = "~/UserControls/Statistics.ascx"
Line 103:
Line 104: #End ExternalSource
Line 105: If (Global.ASP.usercontrols_statistics_ascx.__initial ized = false) Then
Line 106: Global.ASP.usercontrols_statistics_ascx.__initiali zed = true
Line 107: End If
Line 108: End Sub
Line 109:
Line 110: Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean
Line 111: Get
Line 112: Return false
Line 113: End Get
Line 114: End Property
Line 115:
Line 116: Private Function __BuildControlLabel4() As Global.System.Web.UI.WebControls.Label
Line 117: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 118:
Line 119: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 120: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 121:
Line 122: #End ExternalSource
Line 123: Me.Label4 = __ctrl
Line 124: __ctrl.SkinID = "FormLabel"
Line 125: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 126:
Line 127: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 128: __ctrl.ID = "Label4"
Line 129:
Line 130: #End ExternalSource
Line 131:
Line 132: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 133: __ctrl.Text = "Jobs/Resumes Stats"
Line 134:
Line 135: #End ExternalSource
Line 136:
Line 137: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 138: __ctrl.ForeColor = System.Drawing.Color.Black
Line 139:
Line 140: #End ExternalSource
Line 141: Return __ctrl
Line 142: End Function
Line 143:
Line 144: Private Function __BuildControlLabel1() As Global.System.Web.UI.WebControls.Label
Line 145: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 146:
Line 147: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 148: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 149:
Line 150: #End ExternalSource
Line 151: Me.Label1 = __ctrl
Line 152: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 153:
Line 154: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 155: __ctrl.ID = "Label1"
Line 156:
Line 157: #End ExternalSource
Line 158:
Line 159: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 160: __ctrl.Text = "Total Jobs :"
Line 161:
Line 162: #End ExternalSource
Line 163: Return __ctrl
Line 164: End Function
Line 165:
Line 166: Private Function __BuildControllblJobs() As Global.System.Web.UI.WebControls.Label
Line 167: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 168:
Line 169: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 170: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 171:
Line 172: #End ExternalSource
Line 173: Me.lblJobs = __ctrl
Line 174: __ctrl.SkinID = "FormLabel"
Line 175: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 176:
Line 177: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 178: __ctrl.ID = "lblJobs"
Line 179:
Line 180: #End ExternalSource
Line 181:
Line 182: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 183: __ctrl.Text = "Label"
Line 184:
Line 185: #End ExternalSource
Line 186:
Line 187: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 188: __ctrl.ForeColor = System.Drawing.Color.Black
Line 189:
Line 190: #End ExternalSource
Line 191: Return __ctrl
Line 192: End Function
Line 193:
Line 194: Private Function __BuildControlLabel2() As Global.System.Web.UI.WebControls.Label
Line 195: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 196:
Line 197: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 198: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 199:
Line 200: #End ExternalSource
Line 201: Me.Label2 = __ctrl
Line 202: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 203:
Line 204: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 205: __ctrl.ID = "Label2"
Line 206:
Line 207: #End ExternalSource
Line 208:
Line 209: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 210: __ctrl.Text = "Total Resumes :"
Line 211:
Line 212: #End ExternalSource
Line 213: Return __ctrl
Line 214: End Function
Line 215:
Line 216: Private Function __BuildControllblResumes() As Global.System.Web.UI.WebControls.Label
Line 217: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 218:
Line 219: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 220: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 221:
Line 222: #End ExternalSource
Line 223: Me.lblResumes = __ctrl
Line 224: __ctrl.SkinID = "FormLabel"
Line 225: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 226:
Line 227: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 228: __ctrl.ID = "lblResumes"
Line 229:
Line 230: #End ExternalSource
Line 231:
Line 232: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 233: __ctrl.Text = "Label"
Line 234:
Line 235: #End ExternalSource
Line 236:
Line 237: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 238: __ctrl.ForeColor = System.Drawing.Color.Black
Line 239:
Line 240: #End ExternalSource
Line 241: Return __ctrl
Line 242: End Function
Line 243:
Line 244: Private Function __BuildControlLabel3() As Global.System.Web.UI.WebControls.Label
Line 245: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 246:
Line 247: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 248: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 249:
Line 250: #End ExternalSource
Line 251: Me.Label3 = __ctrl
Line 252: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 253:
Line 254: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 255: __ctrl.ID = "Label3"
Line 256:
Line 257: #End ExternalSource
Line 258:
Line 259: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 260: __ctrl.Text = "Total Companies :"
Line 261:
Line 262: #End ExternalSource
Line 263: Return __ctrl
Line 264: End Function
Line 265:
Line 266: Private Function __BuildControllblCompanies() As Global.System.Web.UI.WebControls.Label
Line 267: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 268:
Line 269: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 270: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 271:
Line 272: #End ExternalSource
Line 273: Me.lblCompanies = __ctrl
Line 274: __ctrl.SkinID = "FormLabel"
Line 275: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 276:
Line 277: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 278: __ctrl.ID = "lblCompanies"
Line 279:
Line 280: #End ExternalSource
Line 281:
Line 282: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 283: __ctrl.Text = "Label"
Line 284:
Line 285: #End ExternalSource
Line 286:
Line 287: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 288: __ctrl.ForeColor = System.Drawing.Color.Black
Line 289:
Line 290: #End ExternalSource
Line 291: Return __ctrl
Line 292: End Function
Line 293:
Line 294: Private Sub __BuildControlTree(ByVal __ctrl As usercontrols_statistics_ascx)
Line 295: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 296:
Line 297: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 298: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&"<table cellspacing=""0"" cellpadding=""5"" border=""1"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowra"& _
Line 299: "p=""nowrap"" align=""center"" colspan=""2"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 300:
Line 301: #End ExternalSource
Line 302: Dim __ctrl1 As Global.System.Web.UI.WebControls.Label
Line 303:
Line 304: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 305: __ctrl1 = Me.__BuildControlLabel4
Line 306:
Line 307: #End ExternalSource
Line 308:
Line 309: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 310: __parser.AddParsedSubObject(__ctrl1)
Line 311:
Line 312: #End ExternalSource
Line 313:
Line 314: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 315: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 316: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 317:
Line 318: #End ExternalSource
Line 319: Dim __ctrl2 As Global.System.Web.UI.WebControls.Label
Line 320:
Line 321: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 322: __ctrl2 = Me.__BuildControlLabel1
Line 323:
Line 324: #End ExternalSource
Line 325:
Line 326: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 327: __parser.AddParsedSubObject(__ctrl2)
Line 328:
Line 329: #End ExternalSource
Line 330:
Line 331: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 332: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 333:
Line 334: #End ExternalSource
Line 335: Dim __ctrl3 As Global.System.Web.UI.WebControls.Label
Line 336:
Line 337: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 338: __ctrl3 = Me.__BuildControllblJobs
Line 339:
Line 340: #End ExternalSource
Line 341:
Line 342: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 343: __parser.AddParsedSubObject(__ctrl3)
Line 344:
Line 345: #End ExternalSource
Line 346:
Line 347: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 348: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 349: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 350:
Line 351: #End ExternalSource
Line 352: Dim __ctrl4 As Global.System.Web.UI.WebControls.Label
Line 353:
Line 354: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 355: __ctrl4 = Me.__BuildControlLabel2
Line 356:
Line 357: #End ExternalSource
Line 358:
Line 359: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 360: __parser.AddParsedSubObject(__ctrl4)
Line 361:
Line 362: #End ExternalSource
Line 363:
Line 364: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 365: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 366:
Line 367: #End ExternalSource
Line 368: Dim __ctrl5 As Global.System.Web.UI.WebControls.Label
Line 369:
Line 370: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 371: __ctrl5 = Me.__BuildControllblResumes
Line 372:
Line 373: #End ExternalSource
Line 374:
Line 375: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 376: __parser.AddParsedSubObject(__ctrl5)
Line 377:
Line 378: #End ExternalSource
Line 379:
Line 380: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 381: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 382: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 383:
Line 384: #End ExternalSource
Line 385: Dim __ctrl6 As Global.System.Web.UI.WebControls.Label
Line 386:
Line 387: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 388: __ctrl6 = Me.__BuildControlLabel3
Line 389:
Line 390: #End ExternalSource
Line 391:
Line 392: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 393: __parser.AddParsedSubObject(__ctrl6)
Line 394:
Line 395: #End ExternalSource
Line 396:
Line 397: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 398: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 399:
Line 400: #End ExternalSource
Line 401: Dim __ctrl7 As Global.System.Web.UI.WebControls.Label
Line 402:
Line 403: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 404: __ctrl7 = Me.__BuildControllblCompanies
Line 405:
Line 406: #End ExternalSource
Line 407:
Line 408: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 409: __parser.AddParsedSubObject(__ctrl7)
Line 410:
Line 411: #End ExternalSource
Line 412:
Line 413: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 414: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&"</table>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)))
Line 415:
Line 416: #End ExternalSource
Line 417: End Sub
Line 418:
Line 419:
Line 420: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb",912304)
Line 421: Protected Overrides Sub FrameworkInitialize()
Line 422: MyBase.FrameworkInitialize
Line 423: Me.__BuildControlTree(Me)
Line 424: End Sub
Line 425:
Line 426: #End ExternalSource
Line 427: End Class
Line 428: End Namespace
Line 429: </CODE>
Here is my Statistics.ascx.vb file. Runs like a charm on my local host. What am I missing?
Imports JobSiteStarterKit.BOL
Partial Class Statistics
Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lblCompanies.Text = Company.GetCompanyCount().ToString()
lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
lblResumes.Text = [Resume].GetResumeCount().ToString()
End Sub
End Class
Thanks in advance for any help.
Compiler Error Message: BC30451: Name 'Company' is not declared.
Source Error:
Line 5:
Line 6: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 7: lblCompanies.Text = Company.GetCompanyCount().ToString()
Line 8: lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
Line 9: lblResumes.Text = [Resume].GetResumeCount().ToString()Source File: E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb Line: 7 c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc. exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_global.asax.bjsw_ hc7.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2 .0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03 f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3 .0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Code.rt_frun7.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b7 7a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5 c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serial ization\3.0.0.0__b77a5c561934e089\System.Runtime.S erialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b 77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0. 0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\ 3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0 .0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServic es\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServ ices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\ 2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collec tions,System.Collections.Specialized,System.Config uration,System.Text,System.Text.RegularExpressions ,System.Web,System.Web.Caching,System.Web.SessionS tate,System.Web.Security,System.Web.Profile,System .Web.UI,System.Web.UI.WebControls,System.Web.UI.We bControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.6.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.10.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.7.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.8.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.11.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.9.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.12.v b" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.5.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.4.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\feb9765b\d6c75d9a\App_Web_5da9iydy.2.vb"
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.
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(1) : warning BC40056: Namespace or type specified in the Imports 'JobSiteStarterKit.BOL' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports JobSiteStarterKit.BOL
~~~~~~~~~~~~~~~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(7) : error BC30451: Name 'Company' is not declared.
lblCompanies.Text = Company.GetCompanyCount().ToString()
~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(8) : error BC30451: Name 'JobPosting' is not declared.
lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
~~~~~~~~~~
E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb(9) : error BC30451: Name 'Resume' is not declared.
lblResumes.Text = [Resume].GetResumeCount().ToString()
~~~~~~~~
<CODE>Line 1: #ExternalChecksum("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx","{406ea660-64cf-4c82-b6f0-42d48172a799}","8AB9E22A095AEC521926BB44A5DB9A09")
Line 2: '------------------------------------------------------------------------------
Line 3: ' <auto-generated>
Line 4: ' This code was generated by a tool.
Line 5: ' Runtime Version:2.0.50727.42
Line 6: '
Line 7: ' Changes to this file may cause incorrect behavior and will be lost if
Line 8: ' the code is regenerated.
Line 9: ' </auto-generated>
Line 10: '------------------------------------------------------------------------------
Line 11:
Line 12: Option Strict Off
Line 13: Option Explicit On
Line 14:
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System
Line 17: Imports System.Collections
Line 18: Imports System.Collections.Specialized
Line 19: Imports System.Configuration
Line 20: Imports System.Text
Line 21: Imports System.Text.RegularExpressions
Line 22: Imports System.Web
Line 23: Imports System.Web.Caching
Line 24: Imports System.Web.Profile
Line 25: Imports System.Web.Security
Line 26: Imports System.Web.SessionState
Line 27: Imports System.Web.UI
Line 28: Imports System.Web.UI.HtmlControls
Line 29: Imports System.Web.UI.WebControls
Line 30: Imports System.Web.UI.WebControls.WebParts
Line 31:
Line 32:
Line 33: Partial Public Class Statistics
Line 34:
Line 35:
Line 36: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 37: Protected WithEvents Label4 As Global.System.Web.UI.WebControls.Label
Line 38:
Line 39: #End ExternalSource
Line 40:
Line 41:
Line 42: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 43: Protected WithEvents Label1 As Global.System.Web.UI.WebControls.Label
Line 44:
Line 45: #End ExternalSource
Line 46:
Line 47:
Line 48: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 49: Protected WithEvents lblJobs As Global.System.Web.UI.WebControls.Label
Line 50:
Line 51: #End ExternalSource
Line 52:
Line 53:
Line 54: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 55: Protected WithEvents Label2 As Global.System.Web.UI.WebControls.Label
Line 56:
Line 57: #End ExternalSource
Line 58:
Line 59:
Line 60: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 61: Protected WithEvents lblResumes As Global.System.Web.UI.WebControls.Label
Line 62:
Line 63: #End ExternalSource
Line 64:
Line 65:
Line 66: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 67: Protected WithEvents Label3 As Global.System.Web.UI.WebControls.Label
Line 68:
Line 69: #End ExternalSource
Line 70:
Line 71:
Line 72: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 73: Protected WithEvents lblCompanies As Global.System.Web.UI.WebControls.Label
Line 74:
Line 75: #End ExternalSource
Line 76:
Line 77: Protected ReadOnly Property Profile() As ProfileCommon
Line 78: Get
Line 79: Return CType(Me.Context.Profile,ProfileCommon)
Line 80: End Get
Line 81: End Property
Line 82:
Line 83: Protected ReadOnly Property ApplicationInstance() As ASP.global_asax
Line 84: Get
Line 85: Return CType(Me.Context.ApplicationInstance,ASP.global_as ax)
Line 86: End Get
Line 87: End Property
Line 88: End Class
Line 89:
Line 90: Namespace ASP
Line 91:
Line 92: <System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()> _
Line 93: Public Class usercontrols_statistics_ascx
Line 94: Inherits Global.Statistics
Line 95:
Line 96: Private Shared __initialized As Boolean
Line 97:
Line 98: Public Sub New()
Line 99: MyBase.New
Line 100:
Line 101: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb",912304)
Line 102: CType(Me,System.Web.UI.UserControl).AppRelativeVir tualPath = "~/UserControls/Statistics.ascx"
Line 103:
Line 104: #End ExternalSource
Line 105: If (Global.ASP.usercontrols_statistics_ascx.__initial ized = false) Then
Line 106: Global.ASP.usercontrols_statistics_ascx.__initiali zed = true
Line 107: End If
Line 108: End Sub
Line 109:
Line 110: Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean
Line 111: Get
Line 112: Return false
Line 113: End Get
Line 114: End Property
Line 115:
Line 116: Private Function __BuildControlLabel4() As Global.System.Web.UI.WebControls.Label
Line 117: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 118:
Line 119: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 120: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 121:
Line 122: #End ExternalSource
Line 123: Me.Label4 = __ctrl
Line 124: __ctrl.SkinID = "FormLabel"
Line 125: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 126:
Line 127: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 128: __ctrl.ID = "Label4"
Line 129:
Line 130: #End ExternalSource
Line 131:
Line 132: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 133: __ctrl.Text = "Jobs/Resumes Stats"
Line 134:
Line 135: #End ExternalSource
Line 136:
Line 137: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",5)
Line 138: __ctrl.ForeColor = System.Drawing.Color.Black
Line 139:
Line 140: #End ExternalSource
Line 141: Return __ctrl
Line 142: End Function
Line 143:
Line 144: Private Function __BuildControlLabel1() As Global.System.Web.UI.WebControls.Label
Line 145: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 146:
Line 147: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 148: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 149:
Line 150: #End ExternalSource
Line 151: Me.Label1 = __ctrl
Line 152: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 153:
Line 154: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 155: __ctrl.ID = "Label1"
Line 156:
Line 157: #End ExternalSource
Line 158:
Line 159: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",10)
Line 160: __ctrl.Text = "Total Jobs :"
Line 161:
Line 162: #End ExternalSource
Line 163: Return __ctrl
Line 164: End Function
Line 165:
Line 166: Private Function __BuildControllblJobs() As Global.System.Web.UI.WebControls.Label
Line 167: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 168:
Line 169: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 170: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 171:
Line 172: #End ExternalSource
Line 173: Me.lblJobs = __ctrl
Line 174: __ctrl.SkinID = "FormLabel"
Line 175: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 176:
Line 177: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 178: __ctrl.ID = "lblJobs"
Line 179:
Line 180: #End ExternalSource
Line 181:
Line 182: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 183: __ctrl.Text = "Label"
Line 184:
Line 185: #End ExternalSource
Line 186:
Line 187: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",13)
Line 188: __ctrl.ForeColor = System.Drawing.Color.Black
Line 189:
Line 190: #End ExternalSource
Line 191: Return __ctrl
Line 192: End Function
Line 193:
Line 194: Private Function __BuildControlLabel2() As Global.System.Web.UI.WebControls.Label
Line 195: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 196:
Line 197: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 198: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 199:
Line 200: #End ExternalSource
Line 201: Me.Label2 = __ctrl
Line 202: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 203:
Line 204: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 205: __ctrl.ID = "Label2"
Line 206:
Line 207: #End ExternalSource
Line 208:
Line 209: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",18)
Line 210: __ctrl.Text = "Total Resumes :"
Line 211:
Line 212: #End ExternalSource
Line 213: Return __ctrl
Line 214: End Function
Line 215:
Line 216: Private Function __BuildControllblResumes() As Global.System.Web.UI.WebControls.Label
Line 217: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 218:
Line 219: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 220: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 221:
Line 222: #End ExternalSource
Line 223: Me.lblResumes = __ctrl
Line 224: __ctrl.SkinID = "FormLabel"
Line 225: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 226:
Line 227: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 228: __ctrl.ID = "lblResumes"
Line 229:
Line 230: #End ExternalSource
Line 231:
Line 232: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 233: __ctrl.Text = "Label"
Line 234:
Line 235: #End ExternalSource
Line 236:
Line 237: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",21)
Line 238: __ctrl.ForeColor = System.Drawing.Color.Black
Line 239:
Line 240: #End ExternalSource
Line 241: Return __ctrl
Line 242: End Function
Line 243:
Line 244: Private Function __BuildControlLabel3() As Global.System.Web.UI.WebControls.Label
Line 245: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 246:
Line 247: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 248: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 249:
Line 250: #End ExternalSource
Line 251: Me.Label3 = __ctrl
Line 252: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 253:
Line 254: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 255: __ctrl.ID = "Label3"
Line 256:
Line 257: #End ExternalSource
Line 258:
Line 259: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",26)
Line 260: __ctrl.Text = "Total Companies :"
Line 261:
Line 262: #End ExternalSource
Line 263: Return __ctrl
Line 264: End Function
Line 265:
Line 266: Private Function __BuildControllblCompanies() As Global.System.Web.UI.WebControls.Label
Line 267: Dim __ctrl As Global.System.Web.UI.WebControls.Label
Line 268:
Line 269: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 270: __ctrl = New Global.System.Web.UI.WebControls.Label
Line 271:
Line 272: #End ExternalSource
Line 273: Me.lblCompanies = __ctrl
Line 274: __ctrl.SkinID = "FormLabel"
Line 275: __ctrl.ApplyStyleSheetSkin(Me.Page)
Line 276:
Line 277: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 278: __ctrl.ID = "lblCompanies"
Line 279:
Line 280: #End ExternalSource
Line 281:
Line 282: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 283: __ctrl.Text = "Label"
Line 284:
Line 285: #End ExternalSource
Line 286:
Line 287: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",29)
Line 288: __ctrl.ForeColor = System.Drawing.Color.Black
Line 289:
Line 290: #End ExternalSource
Line 291: Return __ctrl
Line 292: End Function
Line 293:
Line 294: Private Sub __BuildControlTree(ByVal __ctrl As usercontrols_statistics_ascx)
Line 295: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 296:
Line 297: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 298: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&"<table cellspacing=""0"" cellpadding=""5"" border=""1"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowra"& _
Line 299: "p=""nowrap"" align=""center"" colspan=""2"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 300:
Line 301: #End ExternalSource
Line 302: Dim __ctrl1 As Global.System.Web.UI.WebControls.Label
Line 303:
Line 304: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 305: __ctrl1 = Me.__BuildControlLabel4
Line 306:
Line 307: #End ExternalSource
Line 308:
Line 309: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 310: __parser.AddParsedSubObject(__ctrl1)
Line 311:
Line 312: #End ExternalSource
Line 313:
Line 314: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 315: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 316: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 317:
Line 318: #End ExternalSource
Line 319: Dim __ctrl2 As Global.System.Web.UI.WebControls.Label
Line 320:
Line 321: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 322: __ctrl2 = Me.__BuildControlLabel1
Line 323:
Line 324: #End ExternalSource
Line 325:
Line 326: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 327: __parser.AddParsedSubObject(__ctrl2)
Line 328:
Line 329: #End ExternalSource
Line 330:
Line 331: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 332: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 333:
Line 334: #End ExternalSource
Line 335: Dim __ctrl3 As Global.System.Web.UI.WebControls.Label
Line 336:
Line 337: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 338: __ctrl3 = Me.__BuildControllblJobs
Line 339:
Line 340: #End ExternalSource
Line 341:
Line 342: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 343: __parser.AddParsedSubObject(__ctrl3)
Line 344:
Line 345: #End ExternalSource
Line 346:
Line 347: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 348: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 349: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 350:
Line 351: #End ExternalSource
Line 352: Dim __ctrl4 As Global.System.Web.UI.WebControls.Label
Line 353:
Line 354: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 355: __ctrl4 = Me.__BuildControlLabel2
Line 356:
Line 357: #End ExternalSource
Line 358:
Line 359: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 360: __parser.AddParsedSubObject(__ctrl4)
Line 361:
Line 362: #End ExternalSource
Line 363:
Line 364: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 365: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 366:
Line 367: #End ExternalSource
Line 368: Dim __ctrl5 As Global.System.Web.UI.WebControls.Label
Line 369:
Line 370: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 371: __ctrl5 = Me.__BuildControllblResumes
Line 372:
Line 373: #End ExternalSource
Line 374:
Line 375: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 376: __parser.AddParsedSubObject(__ctrl5)
Line 377:
Line 378: #End ExternalSource
Line 379:
Line 380: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 381: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td nowrap=""nowrap"" align=""right"" w"& _
Line 382: "idth=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 383:
Line 384: #End ExternalSource
Line 385: Dim __ctrl6 As Global.System.Web.UI.WebControls.Label
Line 386:
Line 387: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 388: __ctrl6 = Me.__BuildControlLabel3
Line 389:
Line 390: #End ExternalSource
Line 391:
Line 392: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 393: __parser.AddParsedSubObject(__ctrl6)
Line 394:
Line 395: #End ExternalSource
Line 396:
Line 397: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 398: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" <td align=""left"" width=""50%"">"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" "))
Line 399:
Line 400: #End ExternalSource
Line 401: Dim __ctrl7 As Global.System.Web.UI.WebControls.Label
Line 402:
Line 403: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 404: __ctrl7 = Me.__BuildControllblCompanies
Line 405:
Line 406: #End ExternalSource
Line 407:
Line 408: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 409: __parser.AddParsedSubObject(__ctrl7)
Line 410:
Line 411: #End ExternalSource
Line 412:
Line 413: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx",1)
Line 414: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </td>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&" </tr>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)&"</table>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Micr osoft.VisualBasic.ChrW(10)))
Line 415:
Line 416: #End ExternalSource
Line 417: End Sub
Line 418:
Line 419:
Line 420: #ExternalSource("E:\web\careerinsig\htdocs\UserControls\Statistics. ascx.vb",912304)
Line 421: Protected Overrides Sub FrameworkInitialize()
Line 422: MyBase.FrameworkInitialize
Line 423: Me.__BuildControlTree(Me)
Line 424: End Sub
Line 425:
Line 426: #End ExternalSource
Line 427: End Class
Line 428: End Namespace
Line 429: </CODE>
Here is my Statistics.ascx.vb file. Runs like a charm on my local host. What am I missing?
Imports JobSiteStarterKit.BOL
Partial Class Statistics
Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lblCompanies.Text = Company.GetCompanyCount().ToString()
lblJobs.Text = JobPosting.GetJobPostingCount().ToString()
lblResumes.Text = [Resume].GetResumeCount().ToString()
End Sub
End Class
Thanks in advance for any help.