Instantiation Error BC30182: Type expected.

Hello All,


I am trying to create complete application in the book Teach yourself asp.net in 21 days (c) 2002. I have been trying to run this application completely but I am getting several errors. I have been debugging to solve it for the last 2 months but have been able to fix some. I typed up exactly and followed the instruction accordingly but still errors. Below is one of the error I encountered when clicking on category link. (My appllication folder is named BananaMobile not ty21) Please help me resolve this issue.

Server Error in '/BananaMobile' Application.
--------------------------------------------------------------------------------
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: BC30182: Type expected.
Source Error:


Line 18: ' Populate List with Category Products
Line 19:
Line 20: Dim objBanana As New BananaMobile.BananaMobile
Line 21:
Line 22: Dim objReader As OleDbDataReader = objBanana.GetCategory(CategoryId)


Source File: http://localhost/BananaMobile/products.aspx Line: 20

Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\j2prravv.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\mftixvl5.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\ysnphdaq.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\assembly\dl2\6ac4ef37\9034c10e_1e83c401\bananamobile.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\mmfccfoi.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\mmfccfoi.res" "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\mmfccfoi.0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
http://localhost/BananaMobile/products.aspx(20) : error BC30182: Type expected.
Dim objBanana As New BananaMobile.BananaMobile
~~~~~~~~~~~~~~~~~~~~~~~~~


Show Complete Compilation Source:
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
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.Data
Line 21: Imports System.Data.OleDb
Line 22: Imports System.Text
Line 23: Imports System.Text.RegularExpressions
Line 24: Imports System.Web
Line 25: Imports System.Web.Caching
Line 26: Imports System.Web.Security
Line 27: Imports System.Web.SessionState
Line 28: Imports System.Web.UI
Line 29: Imports System.Web.UI.HtmlControls
Line 30: Imports System.Web.UI.WebControls
Line 31:
Line 32: Namespace ASP
Line 33:
Line 34: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
Line 35: Public Class products_aspx
Line 36: Inherits System.Web.UI.Page
Line 37: Implements System.Web.SessionState.IRequiresSessionState
Line 38:
Line 39: Private Shared __autoHandlers As Integer
Line 40:
Line 41:
Line 42: #ExternalSource("http://localhost/BananaMobile/products.aspx",36)
Line 43: Protected Header1 As ASP.header_ascx
Line 44:
Line 45: #End ExternalSource
Line 46:
Line 47:
Line 48: #ExternalSource("http://localhost/BananaMobile/products.aspx",38)
Line 49: Protected Menu1 As ASP.menu_ascx
Line 50:
Line 51: #End ExternalSource
Line 52:
Line 53:
Line 54: #ExternalSource("http://localhost/BananaMobile/products.aspx",47)
Line 55: Protected imgCategory As System.Web.UI.WebControls.Image
Line 56:
Line 57: #End ExternalSource
Line 58:
Line 59:
Line 60: #ExternalSource("http://localhost/BananaMobile/products.aspx",48)
Line 61: Protected lblCategory As System.Web.UI.WebControls.Label
Line 62:
Line 63: #End ExternalSource
Line 64:
Line 65: Private __control3 As System.Web.UI.DataBoundLiteralControl
Line 66:
Line 67:
Line 68: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 69: Protected dlItems As System.Web.UI.WebControls.DataList
Line 70:
Line 71: #End ExternalSource
Line 72:
Line 73:
Line 74: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 75: Protected Form1 As System.Web.UI.HtmlControls.HtmlForm
Line 76:
Line 77: #End ExternalSource
Line 78:
Line 79: Private Shared __initialized As Boolean = false
Line 80:
Line 81: Private Shared __stringResource As Object
Line 82:
Line 83: Private Shared __fileDependencies As System.Collections.ArrayList
Line 84:
Line 85:
Line 86: #ExternalSource("http://localhost/BananaMobile/products.aspx",8)
Line 87:
Line 88: Sub Page_Load(Sender As Object, e As EventArgs)
Line 89:
Line 90: ' Obtain CategoryID from QueryString
Line 91: Dim CategoryID As String = CStr(Request.Params("cat"))
Line 92:
Line 93: 'set image and label
Line 94: imgCategory.ImageURL = "images/" & CategoryID & ".gif"
Line 95: lblCategory.Text = "" & CategoryID & ""
Line 96:
Line 97: ' Populate List with Category Products
Line 98:
Line 99: Dim objBanana As New BananaMobile.BananaMobile
Line 100:
Line 101: Dim objReader As OleDbDataReader = objBanana.GetCategory(CategoryId)
Line 102: dlItems.DataSource = objReader
Line 103: dlItems.DataBind()
Line 104: objReader.Close()
Line 105: End Sub
Line 106:
Line 107: #End ExternalSource
Line 108:
Line 109: Public Sub New()
Line 110: MyBase.New
Line 111: Dim dependencies As System.Collections.ArrayList
Line 112: If (ASP.products_aspx.__initialized = false) Then
Line 113: ASP.products_aspx.__stringResource = System.Web.UI.TemplateControl.ReadStringResource(GetType(ASP.products_aspx))
Line 114: dependencies = New System.Collections.ArrayList
Line 115: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\header.ascx")
Line 116: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\products.aspx")
Line 117: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\bin\BananaMobile.DLL")
Line 118: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\menu.ascx")
Line 119: ASP.products_aspx.__fileDependencies = dependencies
Line 120: ASP.products_aspx.__initialized = true
Line 121: End If
Line 122: Me.Server.ScriptTimeout = 30000000
Line 123: End Sub
Line 124:
Line 125: Protected Overrides Property AutoHandlers As Integer
Line 126: Get
Line 127: Return ASP.products_aspx.__autoHandlers
Line 128: End Get
Line 129: Set
Line 130: ASP.products_aspx.__autoHandlers = value
Line 131: End Set
Line 132: End Property
Line 133:
Line 134: Protected ReadOnly Property ApplicationInstance As ASP.Global_asax
Line 135: Get
Line 136: Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
Line 137: End Get
Line 138: End Property
Line 139:
Line 140: Public Overrides ReadOnly Property TemplateSourceDirectory As String
Line 141: Get
Line 142: Return "/BananaMobile"
Line 143: End Get
Line 144: End Property
Line 145:
Line 146: Private Function __BuildControlHeader1() As System.Web.UI.Control
Line 147: Dim __ctrl As ASP.header_ascx
Line 148:
Line 149: #ExternalSource("http://localhost/BananaMobile/products.aspx",36)
Line 150: __ctrl = New ASP.header_ascx
Line 151:
Line 152: #End ExternalSource
Line 153: Me.Header1 = __ctrl
Line 154:
Line 155: #ExternalSource("http://localhost/BananaMobile/products.aspx",36)
Line 156: Me.Header1.InitializeAsUserControl(Me.Page)
Line 157:
Line 158: #End ExternalSource
Line 159:
Line 160: #ExternalSource("http://localhost/BananaMobile/products.aspx",36)
Line 161: __ctrl.ID = "Header1"
Line 162:
Line 163: #End ExternalSource
Line 164: Return __ctrl
Line 165: End Function
Line 166:
Line 167: Private Function __BuildControlMenu1() As System.Web.UI.Control
Line 168: Dim __ctrl As ASP.menu_ascx
Line 169:
Line 170: #ExternalSource("http://localhost/BananaMobile/products.aspx",38)
Line 171: __ctrl = New ASP.menu_ascx
Line 172:
Line 173: #End ExternalSource
Line 174: Me.Menu1 = __ctrl
Line 175:
Line 176: #ExternalSource("http://localhost/BananaMobile/products.aspx",38)
Line 177: Me.Menu1.InitializeAsUserControl(Me.Page)
Line 178:
Line 179: #End ExternalSource
Line 180:
Line 181: #ExternalSource("http://localhost/BananaMobile/products.aspx",38)
Line 182: __ctrl.ID = "Menu1"
Line 183:
Line 184: #End ExternalSource
Line 185: Return __ctrl
Line 186: End Function
Line 187:
Line 188: Private Function __BuildControlimgCategory() As System.Web.UI.Control
Line 189: Dim __ctrl As System.Web.UI.WebControls.Image
Line 190:
Line 191: #ExternalSource("http://localhost/BananaMobile/products.aspx",47)
Line 192: __ctrl = New System.Web.UI.WebControls.Image
Line 193:
Line 194: #End ExternalSource
Line 195: Me.imgCategory = __ctrl
Line 196:
Line 197: #ExternalSource("http://localhost/BananaMobile/products.aspx",47)
Line 198: __ctrl.ID = "imgCategory"
Line 199:
Line 200: #End ExternalSource
Line 201:
Line 202: #ExternalSource("http://localhost/BananaMobile/products.aspx",47)
Line 203: CType(__ctrl,System.Web.UI.IAttributeAccessor).SetAttribute("Border", "0")
Line 204:
Line 205: #End ExternalSource
Line 206:
Line 207: #ExternalSource("http://localhost/BananaMobile/products.aspx",47)
Line 208: CType(__ctrl,System.Web.UI.IAttributeAccessor).SetAttribute("Align", "TextTop")
Line 209:
Line 210: #End ExternalSource
Line 211: Return __ctrl
Line 212: End Function
Line 213:
Line 214: Private Function __BuildControllblCategory() As System.Web.UI.Control
Line 215: Dim __ctrl As System.Web.UI.WebControls.Label
Line 216:
Line 217: #ExternalSource("http://localhost/BananaMobile/products.aspx",48)
Line 218: __ctrl = New System.Web.UI.WebControls.Label
Line 219:
Line 220: #End ExternalSource
Line 221: Me.lblCategory = __ctrl
Line 222:
Line 223: #ExternalSource("http://localhost/BananaMobile/products.aspx",48)
Line 224: __ctrl.ID = "lblCategory"
Line 225:
Line 226: #End ExternalSource
Line 227: Return __ctrl
Line 228: End Function
Line 229:
Line 230: Private Function __BuildControl__control3() As System.Web.UI.Control
Line 231: Dim __ctrl As System.Web.UI.DataBoundLiteralControl
Line 232: __ctrl = New System.Web.UI.DataBoundLiteralControl(6, 5)
Line 233: Me.__control3 = __ctrl
Line 234: __ctrl.SetStaticString(0, ""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" <table border=0 width=""200"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 235: " <tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 236: " <td width=""200"" valign=""center"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 237: " ")
Line 238: __ctrl.SetStaticString(1, "
<br>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" ")
Line 239: __ctrl.SetStaticString(2, "<p>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" Pr"& _
Line 240: "ice:
")
Line 241: __ctrl.SetStaticString(3, "<br>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" &nbsp;&nbsp;&nbsp;&nbsp;&nb"& _
Line 242: "sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 243: " "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" <font color=""#9D0000"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 246: " <b>Add To Cart<b></font>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 247: "
"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 248: " </td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 249: " </table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" ")
Line 250: AddHandler __ctrl.DataBinding, AddressOf Me.__DataBind__control3
Line 251: Return __ctrl
Line 252: End Function
Line 253:
Line 254: Public Sub __DataBind__control3(ByVal sender As Object, ByVal e As System.EventArgs)
Line 255: Dim Container As System.Web.UI.WebControls.DataListItem
Line 256: Dim target As System.Web.UI.DataBoundLiteralControl
Line 257: target = CType(sender,System.Web.UI.DataBoundLiteralControl)
Line 258: Container = CType(target.BindingContainer,System.Web.UI.WebControls.DataListItem)
Line 259:
Line 260: #ExternalSource("http://localhost/BananaMobile/products.aspx",57)
Line 261: target.SetDataBoundString(0, System.Convert.ToString(Container.DataItem("Name")))
Line 262:
Line 263: #End ExternalSource
Line 264:
Line 265: #ExternalSource("http://localhost/BananaMobile/products.aspx",58)
Line 266: target.SetDataBoundString(1, System.Convert.ToString(Container.DataItem("Description")))
Line 267:
Line 268: #End ExternalSource
Line 269:
Line 270: #ExternalSource("http://localhost/BananaMobile/products.aspx",60)
Line 271: target.SetDataBoundString(2, System.Convert.ToString(System.String.Format("{0:c}", Container.DataItem("Price"))))
Line 272:
Line 273: #End ExternalSource
Line 274:
Line 275: #ExternalSource("http://localhost/BananaMobile/products.aspx",62)
Line 276: target.SetDataBoundString(3, System.Convert.ToString(Container.DataItem("PartID")))
Line 277:
Line 278: #End ExternalSource
Line 279:
Line 280: #ExternalSource("http://localhost/BananaMobile/products.aspx",63)
Line 281: target.SetDataBoundString(4, System.Convert.ToString(Container.DataItem("Category")))
Line 282:
Line 283: #End ExternalSource
Line 284: End Sub
Line 285:
Line 286: Private Sub __BuildControl__control2(ByVal __ctrl As System.Web.UI.Control)
Line 287:
Line 288: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 289: Me.__BuildControl__control3
Line 290:
Line 291: #End ExternalSource
Line 292: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 293:
Line 294: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 295: __parser.AddParsedSubObject(Me.__control3)
Line 296:
Line 297: #End ExternalSource
Line 298: End Sub
Line 299:
Line 300: Private Function __BuildControldlItems() As System.Web.UI.Control
Line 301: Dim __ctrl As System.Web.UI.WebControls.DataList
Line 302:
Line 303: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 304: __ctrl = New System.Web.UI.WebControls.DataList
Line 305:
Line 306: #End ExternalSource
Line 307: Me.dlItems = __ctrl
Line 308:
Line 309: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 310: __ctrl.ID = "dlItems"
Line 311:
Line 312: #End ExternalSource
Line 313:
Line 314: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 315: __ctrl.RepeatColumns = 2
Line 316:
Line 317: #End ExternalSource
Line 318:
Line 319: #ExternalSource("http://localhost/BananaMobile/products.aspx",52)
Line 320: __ctrl.ItemTemplate = New System.Web.UI.CompiledTemplateBuilder(AddressOf Me.__BuildControl__control2)
Line 321:
Line 322: #End ExternalSource
Line 323: Return __ctrl
Line 324: End Function
Line 325:
Line 326: Private Function __BuildControlForm1() As System.Web.UI.Control
Line 327: Dim __ctrl As System.Web.UI.HtmlControls.HtmlForm
Line 328:
Line 329: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 330: __ctrl = New System.Web.UI.HtmlControls.HtmlForm
Line 331:
Line 332: #End ExternalSource
Line 333: Me.Form1 = __ctrl
Line 334:
Line 335: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 336: __ctrl.ID = "Form1"
Line 337:
Line 338: #End ExternalSource
Line 339: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 340:
Line 341: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 342: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 343:
Line 344: #End ExternalSource
Line 345:
Line 346: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 347: Me.__BuildControldlItems
Line 348:
Line 349: #End ExternalSource
Line 350:
Line 351: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 352: __parser.AddParsedSubObject(Me.dlItems)
Line 353:
Line 354: #End ExternalSource
Line 355:
Line 356: #ExternalSource("http://localhost/BananaMobile/products.aspx",51)
Line 357: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 358:
Line 359: #End ExternalSource
Line 360: Return __ctrl
Line 361: End Function
Line 362:
Line 363: Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
Line 364: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 365:
Line 366: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 367: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<html>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<head>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<link rel=""stylesheet"" type=""text/css"" href=""..\cit235.css"" /"& _
Line 368: ">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</head>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<body>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" <table height=""100%"" cellspacing=0 cellpadding=0 width="& _
Line 369: """100%"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 370:
Line 371: #End ExternalSource
Line 372:
Line 373: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 374: Me.__BuildControlHeader1
Line 375:
Line 376: #End ExternalSource
Line 377:
Line 378: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 379: __parser.AddParsedSubObject(Me.Header1)
Line 380:
Line 381: #End ExternalSource
Line 382:
Line 383: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 384: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" <tr height=""100%"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 385:
Line 386: #End ExternalSource
Line 387:
Line 388: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 389: Me.__BuildControlMenu1
Line 390:
Line 391: #End ExternalSource
Line 392:
Line 393: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 394: __parser.AddParsedSubObject(Me.Menu1)
Line 395:
Line 396: #End ExternalSource
Line 397:
Line 398: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 399: __parser.AddParsedSubObject(Me.CreateResourceBasedLiteralControl(0, 443, true))
Line 400:
Line 401: #End ExternalSource
Line 402:
Line 403: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 404: Me.__BuildControlimgCategory
Line 405:
Line 406: #End ExternalSource
Line 407:
Line 408: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 409: __parser.AddParsedSubObject(Me.imgCategory)
Line 410:
Line 411: #End ExternalSource
Line 412:
Line 413: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 414: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl("<br>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 415:
Line 416: #End ExternalSource
Line 417:
Line 418: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 419: Me.__BuildControllblCategory
Line 420:
Line 421: #End ExternalSource
Line 422:
Line 423: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 424: __parser.AddParsedSubObject(Me.lblCategory)
Line 425:
Line 426: #End ExternalSource
Line 427:
Line 428: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 429: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </td> "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 430: " <td valign=""top"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "))
Line 431:
Line 432: #End ExternalSource
Line 433:
Line 434: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 435: Me.__BuildControlForm1
Line 436:
Line 437: #End ExternalSource
Line 438:
Line 439: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 440: __parser.AddParsedSubObject(Me.Form1)
Line 441:
Line 442: #End ExternalSource
Line 443:
Line 444: #ExternalSource("http://localhost/BananaMobile/products.aspx",1)
Line 445: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 446: " </table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </table"& _
Line 447: ">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" </table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</body></html>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&" "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)))
Line 448:
Line 449: #End ExternalSource
Line 450: End Sub
Line 451:
Line 452: Protected Overrides Sub FrameworkInitialize()
Line 453: SetStringResourcePointer(ASP.products_aspx.__stringResource, 443)
Line 454: Me.__BuildControlTree(Me)
Line 455: Me.FileDependencies = ASP.products_aspx.__fileDependencies
Line 456: Me.EnableViewStateMac = true
Line 457: Me.Request.ValidateInput
Line 458: End Sub
Line 459:
Line 460: Public Overrides Function GetTypeHashCode() As Integer
Line 461: Return 1029410833
Line 462: End Function
Line 463: End Class
Line 464: End Namespace
Line 465:

function OnToggleTOCLevel1() { var elemSrc = window.event.srcElement; var elemLevel2 = document.all(elemSrc.level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '6'; } else { elemLevel2.style.display = 'none'; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '4'; } }


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

__________________________________________________________________________
+++++++++++++++++===========================+++++++++++++++++++++

I received below error when I clicked on Login from the page default.aspx . So far I am able to load default.aspx error free. Plus I tried to edit webconfig file as you have in the book but not compiled correctly. so i replace with one i had when i created the apps.




Server Error in '/BananaMobile' Application.
--------------------------------------------------------------------------------
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 'BananaMobile.User' is not defined.
Source Error:


Line 9: Line 11: Dim objUser as new BananaMobile.User
Line 12: Dim objBM as new BananaMobile.BananaMobile
Line 13: Dim intID as integer


Source File: http://localhost/BananaMobile/login.aspx Line: 11

Show Detailed Compiler Output:
C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\j2prravv.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\mftixvl5.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\ysnphdaq.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\bananamobile\98000e17\9ce86b67\assembly\dl2\6ac4ef37\9034c10e_1e83c401\bananamobile.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\itaqer7q.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\itaqer7q.res" "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bananamobile\98000e17\9ce86b67\itaqer7q.0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
http://localhost/BananaMobile/login.aspx(11) : error BC30002: Type 'BananaMobile.User' is not defined.
Dim objUser as new BananaMobile.User
~~~~~~~~~~~~~~~~~
http://localhost/BananaMobile/login.aspx(12) : error BC30182: Type expected.
Dim objBM as new BananaMobile.BananaMobile
~~~~~~~~~~~~~~~~~~~~~~~~~
http://localhost/BananaMobile/login.aspx(24) : error BC30456: 'RedirectFormLoginPage' is not a member of 'System.Web.Security.FormsAuthentication'.
FormsAuthentication.RedirectFormLoginPage(intID,false)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://localhost/BananaMobile/login.aspx(26) : error BC30451: Name 'iblMessage' is not declared.
iblMessage.Text="<font color=red>That is not a valid login or password</font>"
~~~~~~~~~~


Show Complete Compilation Source:
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
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.Data
Line 21: Imports System.Data.Oledb
Line 22: Imports System.Text
Line 23: Imports System.Text.RegularExpressions
Line 24: Imports System.Web
Line 25: Imports System.Web.Caching
Line 26: Imports System.Web.Security
Line 27: Imports System.Web.SessionState
Line 28: Imports System.Web.UI
Line 29: Imports System.Web.UI.HtmlControls
Line 30: Imports System.Web.UI.WebControls
Line 31:
Line 32: Namespace ASP
Line 33:
Line 34: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
Line 35: Public Class login_aspx
Line 36: Inherits BananaMobile.login
Line 37: Implements System.Web.SessionState.IRequiresSessionState
Line 38:
Line 39:
Line 40: #ExternalSource("http://localhost/BananaMobile/login.aspx",31)
Line 41: Protected HEADER1 As ASP.header_ascx
Line 42:
Line 43: #End ExternalSource
Line 44:
Line 45:
Line 46: #ExternalSource("http://localhost/BananaMobile/login.aspx",33)
Line 47: Protected MENU1 As ASP.menu_ascx
Line 48:
Line 49: #End ExternalSource
Line 50:
Line 51:
Line 52: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 53: Private __control2 As System.Web.UI.HtmlControls.HtmlForm
Line 54:
Line 55: #End ExternalSource
Line 56:
Line 57: Private Shared __initialized As Boolean = false
Line 58:
Line 59: Private Shared __stringResource As Object
Line 60:
Line 61: Private Shared __fileDependencies As System.Collections.ArrayList
Line 62:
Line 63:
Line 64: #ExternalSource("http://localhost/BananaMobile/login.aspx",9)
Line 65:
Line 66: Sub login(obj as Object, e as EventArgs)
Line 67: Dim objUser as new BananaMobile.User
Line 68: Dim objBM as new BananaMobile.BananaMobile
Line 69: Dim intID as integer
Line 70:
Line 71: intID=objUser.Login(tbUsername.text,tbPassword.text)
Line 72: if intID<>0 then
Line 73: Session("UserID")=intID
Line 74:
Line 75: 'Check if the user has a cart
Line 76: if not objBM.cartExists(intID) then
Line 77: objBM.AddCart(intID)
Line 78: end if
Line 79:
Line 80: FormsAuthentication.RedirectFormLoginPage(intID,false)
Line 81: else
Line 82: iblMessage.Text="<font color=red>That is not a valid login or password</font>"
Line 83: end if
Line 84: end sub
Line 85:
Line 86: #End ExternalSource
Line 87:
Line 88: Public Sub New()
Line 89: MyBase.New
Line 90: Dim dependencies As System.Collections.ArrayList
Line 91: If (ASP.login_aspx.__initialized = false) Then
Line 92: ASP.login_aspx.__stringResource = System.Web.UI.TemplateControl.ReadStringResource(GetType(ASP.login_aspx))
Line 93: dependencies = New System.Collections.ArrayList
Line 94: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\header.ascx")
Line 95: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\bin\BananaMobile.DLL")
Line 96: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\login.aspx")
Line 97: dependencies.Add("c:\inetpub\wwwroot\BananaMobile\menu.ascx")
Line 98: ASP.login_aspx.__fileDependencies = dependencies
Line 99: ASP.login_aspx.__initialized = true
Line 100: End If
Line 101: Me.Server.ScriptTimeout = 30000000
Line 102: End Sub
Line 103:
Line 104: Protected Overrides ReadOnly Property SupportAutoEvents As Boolean
Line 105: Get
Line 106: Return false
Line 107: End Get
Line 108: End Property
Line 109:
Line 110: Protected ReadOnly Property ApplicationInstance As ASP.Global_asax
Line 111: Get
Line 112: Return CType(Me.Context.ApplicationInstance,ASP.Global_asax)
Line 113: End Get
Line 114: End Property
Line 115:
Line 116: Public Overrides ReadOnly Property TemplateSourceDirectory As String
Line 117: Get
Line 118: Return "/BananaMobile"
Line 119: End Get
Line 120: End Property
Line 121:
Line 122: Private Function __BuildControlHEADER1() As System.Web.UI.Control
Line 123: Dim __ctrl As ASP.header_ascx
Line 124:
Line 125: #ExternalSource("http://localhost/BananaMobile/login.aspx",31)
Line 126: __ctrl = New ASP.header_ascx
Line 127:
Line 128: #End ExternalSource
Line 129: Me.HEADER1 = __ctrl
Line 130:
Line 131: #ExternalSource("http://localhost/BananaMobile/login.aspx",31)
Line 132: Me.HEADER1.InitializeAsUserControl(Me.Page)
Line 133:
Line 134: #End ExternalSource
Line 135:
Line 136: #ExternalSource("http://localhost/BananaMobile/login.aspx",31)
Line 137: __ctrl.ID = "HEADER1"
Line 138:
Line 139: #End ExternalSource
Line 140: Return __ctrl
Line 141: End Function
Line 142:
Line 143: Private Function __BuildControlMENU1() As System.Web.UI.Control
Line 144: Dim __ctrl As ASP.menu_ascx
Line 145:
Line 146: #ExternalSource("http://localhost/BananaMobile/login.aspx",33)
Line 147: __ctrl = New ASP.menu_ascx
Line 148:
Line 149: #End ExternalSource
Line 150: Me.MENU1 = __ctrl
Line 151:
Line 152: #ExternalSource("http://localhost/BananaMobile/login.aspx",33)
Line 153: Me.MENU1.InitializeAsUserControl(Me.Page)
Line 154:
Line 155: #End ExternalSource
Line 156:
Line 157: #ExternalSource("http://localhost/BananaMobile/login.aspx",33)
Line 158: __ctrl.ID = "MENU1"
Line 159:
Line 160: #End ExternalSource
Line 161: Return __ctrl
Line 162: End Function
Line 163:
Line 164: Private Function __BuildControllblMessage() As System.Web.UI.Control
Line 165: Dim __ctrl As System.Web.UI.WebControls.Label
Line 166:
Line 167: #ExternalSource("http://localhost/BananaMobile/login.aspx",45)
Line 168: __ctrl = New System.Web.UI.WebControls.Label
Line 169:
Line 170: #End ExternalSource
Line 171: Me.lblMessage = __ctrl
Line 172:
Line 173: #ExternalSource("http://localhost/BananaMobile/login.aspx",45)
Line 174: __ctrl.ID = "lblMessage"
Line 175:
Line 176: #End ExternalSource
Line 177: Return __ctrl
Line 178: End Function
Line 179:
Line 180: Private Function __BuildControltbUserName() As System.Web.UI.Control
Line 181: Dim __ctrl As System.Web.UI.WebControls.TextBox
Line 182:
Line 183: #ExternalSource("http://localhost/BananaMobile/login.aspx",54)
Line 184: __ctrl = New System.Web.UI.WebControls.TextBox
Line 185:
Line 186: #End ExternalSource
Line 187: Me.tbUserName = __ctrl
Line 188:
Line 189: #ExternalSource("http://localhost/BananaMobile/login.aspx",54)
Line 190: __ctrl.ID = "tbUserName"
Line 191:
Line 192: #End ExternalSource
Line 193: Return __ctrl
Line 194: End Function
Line 195:
Line 196: Private Function __BuildControltbPassword() As System.Web.UI.Control
Line 197: Dim __ctrl As System.Web.UI.WebControls.TextBox
Line 198:
Line 199: #ExternalSource("http://localhost/BananaMobile/login.aspx",64)
Line 200: __ctrl = New System.Web.UI.WebControls.TextBox
Line 201:
Line 202: #End ExternalSource
Line 203: Me.tbPassword = __ctrl
Line 204:
Line 205: #ExternalSource("http://localhost/BananaMobile/login.aspx",64)
Line 206: __ctrl.ID = "tbPassword"
Line 207:
Line 208: #End ExternalSource
Line 209:
Line 210: #ExternalSource("http://localhost/BananaMobile/login.aspx",64)
Line 211: __ctrl.TextMode = System.Web.UI.WebControls.TextBoxMode.Password
Line 212:
Line 213: #End ExternalSource
Line 214:
Line 215: #ExternalSource("http://localhost/BananaMobile/login.aspx",64)
Line 216: __ctrl.Width = System.Web.UI.WebControls.Unit.Parse("155px", System.Globalization.CultureInfo.InvariantCulture)
Line 217:
Line 218: #End ExternalSource
Line 219: Return __ctrl
Line 220: End Function
Line 221:
Line 222: Private Function __BuildControlbtnSubmit() As System.Web.UI.Control
Line 223: Dim __ctrl As System.Web.UI.WebControls.Button
Line 224:
Line 225: #ExternalSource("http://localhost/BananaMobile/login.aspx",72)
Line 226: __ctrl = New System.Web.UI.WebControls.Button
Line 227:
Line 228: #End ExternalSource
Line 229: Me.btnSubmit = __ctrl
Line 230:
Line 231: #ExternalSource("http://localhost/BananaMobile/login.aspx",72)
Line 232: __ctrl.ID = "btnSubmit"
Line 233:
Line 234: #End ExternalSource
Line 235:
Line 236: #ExternalSource("http://localhost/BananaMobile/login.aspx",72)
Line 237: __ctrl.Text = "Submit"
Line 238:
Line 239: #End ExternalSource
Line 240:
Line 241: #ExternalSource("http://localhost/BananaMobile/login.aspx",72)
Line 242: RemoveHandler __ctrl.Click, AddressOf Me.Login
Line 243:
Line 244: #End ExternalSource
Line 245:
Line 246: #ExternalSource("http://localhost/BananaMobile/login.aspx",72)
Line 247: AddHandler __ctrl.Click, AddressOf Me.Login
Line 248:
Line 249: #End ExternalSource
Line 250: Return __ctrl
Line 251: End Function
Line 252:
Line 253: Private Function __BuildControl__control2() As System.Web.UI.Control
Line 254: Dim __ctrl As System.Web.UI.HtmlControls.HtmlForm
Line 255:
Line 256: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 257: __ctrl = New System.Web.UI.HtmlControls.HtmlForm
Line 258:
Line 259: #End ExternalSource
Line 260: Me.__control2 = __ctrl
Line 261: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 262:
Line 263: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 264: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<table><tr><td width =""75""
rowspan=""3"">&nbsp;"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<"& _
Line 265: "td width=""50"""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"valign=""top"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<font face=""arial"">Username:</font"& _
Line 266: "></td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<td width=""50"" valign=""top"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<font
face=""arial"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)& _
Line 267: ""&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 268:
Line 269: #End ExternalSource
Line 270:
Line 271: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 272: Me.__BuildControltbUserName
Line 273:
Line 274: #End ExternalSource
Line 275:
Line 276: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 277: __parser.AddParsedSubObject(Me.tbUserName)
Line 278:
Line 279: #End ExternalSource
Line 280:
Line 281: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 282: __parser.AddParsedSubObject(New
System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</font>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBa
sic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.C
hrW(9)&"<tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)& _
Line 283: ""&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<td valign=""top"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<font face=""arial"">Password:</font></td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)& _
Line 284: ""&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<td valign=""top"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<font face=""arial"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 285:
Line 286: #End ExternalSource
Line 287:
Line 288: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 289: Me.__BuildControltbPassword
Line 290:
Line 291: #End ExternalSource
Line 292:
Line 293: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 294: __parser.AddParsedSubObject(Me.tbPassword)
Line 295:
Line 296: #End ExternalSource
Line 297:
Line 298: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 299: __parser.AddParsedSubObject(New
System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</font>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&
;
;Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Micr
osoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)& _
Line 300: "<td align=""right"" colspan=""2"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<font face=""arial"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 301:
Line 302: #End ExternalSource
Line 303:
Line 304: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 305: Me.__BuildControlbtnSubmit
Line 306:
Line 307: #End ExternalSource
Line 308:
Line 309: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 310: __parser.AddParsedSubObject(Me.btnSubmit)
Line 311:
Line 312: #End ExternalSource
Line 313:
Line 314: #ExternalSource("http://localhost/BananaMobile/login.aspx",46)
Line 315: __parser.AddParsedSubObject(New
System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</font>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&
;
;Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&
Microsoft.VisualBasic.ChrW(9)& _
Line 316: ""&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 317:
Line 318: #End ExternalSource
Line 319: Return __ctrl
Line 320: End Function
Line 321:
Line 322: Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
Line 323: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 324:
Line 325: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 326: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<HTML>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)))
Line 327:
Line 328: #End ExternalSource
Line 329:
Line 330: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 331: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl("<body background=""images/guitar.gif"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"<table height=""100%"" cellSpacing=""0"" cellP"& _
Line 332: "adding=""0"" width=""100%"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 333:
Line 334: #End ExternalSource
Line 335:
Line 336: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 337: Me.__BuildControlHEADER1
Line 338:
Line 339: #End ExternalSource
Line 340:
Line 341: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 342: __parser.AddParsedSubObject(Me.HEADER1)
Line 343:
Line 344: #End ExternalSource
Line 345:
Line 346: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 347: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<tr height=""100%"">"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 348:
Line 349: #End ExternalSource
Line 350:
Line 351: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 352: Me.__BuildControlMENU1
Line 353:
Line 354: #End ExternalSource
Line 355:
Line 356: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 357: __parser.AddParsedSubObject(Me.MENU1)
Line 358:
Line 359: #End ExternalSource
Line 360:
Line 361: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 362: __parser.AddParsedSubObject(Me.CreateResourceBasedLiteralControl(0, 581, true))
Line 363:
Line 364: #End ExternalSource
Line 365:
Line 366: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 367: Me.__BuildControllblMessage
Line 368:
Line 369: #End ExternalSource
Line 370:
Line 371: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 372: __parser.AddParsedSubObject(Me.lblMessage)
Line 373:
Line 374: #End ExternalSource
Line 375:
Line 376: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 377: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
Line 378:
Line 379: #End ExternalSource
Line 380:
Line 381: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 382: Me.__BuildControl__control2
Line 383:
Line 384: #End ExternalSource
Line 385:
Line 386: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 387: __parser.AddParsedSubObject(Me.__control2)
Line 388:
Line 389: #End ExternalSource
Line 390:
Line 391: #ExternalSource("http://localhost/BananaMobile/login.aspx",1)
Line 392: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"
<P></P>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.
VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)& _
Line 393:
""&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</td>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&
amp;
amp;Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</TD>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&
;
;Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</tr>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"</table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</body>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</HTML>"&Microsoft.VisualBasic.Ch
rW(13)&Microsoft.VisualBasic.ChrW(10)))
Line 394:
Line 395: #End ExternalSource
Line 396: End Sub
Line 397:
Line 398: Protected Overrides Sub FrameworkInitialize()
Line 399: SetStringResourcePointer(ASP.login_aspx.__stringResource, 581)
Line 400: Me.__BuildControlTree(Me)
Line 401: Me.FileDependencies = ASP.login_aspx.__fileDependencies
Line 402: Me.EnableViewStateMac = true
Line 403: Me.Request.ValidateInput
Line 404: End Sub
Line 405:
Line 406: Public Overrides Function GetTypeHashCode() As Integer
Line 407: Return 895810213
Line 408: End Function
Line 409: End Class
Line 410: End Namespace
Line 411:

function OnToggleTOCLevel1() { var elemSrc = window.event.srcElement; var elemLevel2 = document.all(elemSrc.level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '6'; } else { elemLevel2.style.display = 'none'; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '4'; } }


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


I really appreciate if any one can help me on this. I hope to receive a reply soon. I thank you in advance.

Sincerely

Joe
0
AspNetMan111
8/19/2004 5:13:35 AM
asp.net.getting-started 91979 articles. 4 followers. Follow

13 Replies
2056 Views

Similar Articles

[PageSpeed] 3

It's hard to make sense of all that code. :)  But the error message you are getting is usually caused by a missing reference.  Add an Imports statement or an @Import page directive depending on whether you are using code-behind or not.

Imports statement
Import page directive
Darrell Norton, MVP
Darrell Norton's Blog


Please mark this post as answered if it helped you!
0
DarrellNorton
8/19/2004 12:57:02 PM
Thank you for the reply. I tried to import my classes but stilll not working  and I am not using code behind. I imported Bananamobile Class which has a name space Bananamobile. Also I have another class called User which also has name space Bananamobile. does this make any error?

Below is what I have in the product.aspx page.
<%@ Page Language="VB" %>
<%@ Register TagPrefix="Banana" TagName="Header" Src="header.ascx" %>
<%@ Register TagPrefix="Banana" TagName="Menu" Src="menu.ascx" %>
<%@ Import Namespace="BananaMobile" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
Sub Page_Load(Sender As Object, e As EventArgs)
' Obtain CategoryID from QueryString
Dim CategoryID As String = CStr(Request.Params("cat"))

'set image and label
imgCategory.ImageURL = "images/" & CategoryID & ".gif"
lblCategory.Text = "" & CategoryID & ""

' Populate List with Category Products

Dim objBanana As New BananaMobile.BananaMobile

Dim objReader As OleDbDataReader = objBanana.GetCategory(CategoryId)
dlItems.DataSource = objReader
dlItems.DataBind()
objReader.Close()
End Sub
</script>
<html>
<head>
<link rel="stylesheet" type="text/css" href="..\cit235.css" />
</head>
<body>
<table height="100%" cellspacing=0 cellpadding=0 width="100%">
<Banana:Header runat="server" ID="Header1"/>
<tr height="100%">
<Banana:Menu runat="server" ID="Menu1"/>

<td align=left valign="top" width=100% nowrap>
<table height="100%" valign="top" align="left" cellspacing=0 cellpadding=0 width="100%">
<tr height="100%" valign="top">
<td nowrap>
<table cellspacing=5 cellpadding=5 width="100%">
<tr>
<td valign="top" width="110">
<asp:Image id="imgCategory" runat="server" Border="0" Align="TextTop"/><br>
<asp:Label id="lblCategory" runat="server"/>
</td>
<td valign="top">
<form runat="server" ID="Form1">
<asp:DataList id="dlItems" RepeatColumns="2" runat="server">
<ItemTemplate>
<table border=0 width="200">
<tr>
<td width="200" valign="center">
<%# Container.DataItem("Name") %><br>
<%# Container.DataItem("Description") %><p>

Price: <%# System.String.Format("{0:c}", Container.DataItem("Price")) %><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<font color="#9D0000">
Add To Cart<b></font>

</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body></html>

And below is what i have on Default.aspx

<%@ Register TagPrefix="Banana" TagName="News" Src="news.ascx" %>
<%@ Register TagPrefix="Banana" TagName="Menu" Src="menu.ascx" %>
<%@ Register TagPrefix="Banana" TagName="Header" Src="header.ascx" %>
<%@ import Namespace="BananaMobile" %>
<%@ Page Language="vb" CodeBehind="default.aspx.vb" AutoEventWireup="false" Inherits="BananaMobile._default" %>
<HTML>
<body background="images/guitar.gif">
<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
<BANANA:HEADER id="HEADER1" runat="server"></BANANA:HEADER>
<tr height="100%">
<BANANA:MENU id="MENU1" runat="server"></BANANA:MENU>
<TD vAlign="top" noWrap align="left" width="100%">
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="left" valign="top">
<tr vAlign="top" height="100%">
<td noWrap>
<table cellSpacing="0" cellPadding="0" width="100%">
<tr>
<td vAlign="top" width="667">&nbsp;<br>
<b>Welcome to BananaMobiles!

<p>
With this site, you can build your own customized BananaMobile and order it
online! Choose from the options on the left to select parts to build your
BananaMobile!
<p>Each BananaMobile come built-in with BananaConnect technology, to connect you to
the Internet without leaving your banana.Our proprietary software allows you to
post track records to compete online!
</p>
</td>
<td vAlign="top"><BANANA:NEWS id="NEWS1" runat="server"></BANANA:NEWS></td>
</tr>
</table>
</td>
</tr>
</table>
</TD>
</tr>
</table>
</body>
</HTML>

______
which namespace should I import and to where. can you help me out.

can anyone help!.
Thank you in advace
Joe
0
AspNetMan111
8/19/2004 4:50:53 PM
I don't know what this line is trying to do:

Dim objBanana As New BananaMobile.BananaMobile
It needs to be a type, which means a class. Try one of the following:
Dim objBanana As New BananaMobile.BananaMobile()
'OR
Dim objBanana As New BananaMobile()
Darrell Norton, MVP
Darrell Norton's Blog


Please mark this post as answered if it helped you!
0
DarrellNorton
8/19/2004 8:45:20 PM
Thank you for your reply. Unfortunately its still having that error. On line 20 I am trying to Instantiate a new BananaMobile object, and  line 22 below lines - retrive all items for the specified category using the GetCategory  method, which returns and OledbDatareader. Any idea?
0
AspNetMan111
8/19/2004 10:59:41 PM
Can somebody help me with this error? I guess not even geeks in Microsoft dont know about this problem. Somebody please help me out. Developer for developer give a hand. Its killing my brain. Pleeeasssssseeeeeeeeeeeeeeeeeeeeeee
0
AspNetMan111
8/21/2004 6:23:19 PM
Can you only post the code where the error appears.
HighOnCoding
Wanna get high!
0
azamsharp
8/21/2004 8:26:28 PM
' Populate List with Category Products 

Dim objBanana As New BananaMobile.BananaMobile
____________________________________________________________________________
The above line is making problem. after compiling when i click on the link of categories from the home page this error happens
Server Error in '/BananaMobile' Application.
--------------------------------------------------------------------------------
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: BC30182: Type expected.
Source Error:

Line 18: ' Populate List with Category Products
Line 19:
Line 20: Dim objBanana As New BananaMobile.BananaMobile
Line 21:
Line 22: Dim objReader As OleDbDataReader = objBanana.GetCategory(CategoryID)

Source File: http://localhost/BananaMobile/products.aspx Line: 20
____________________________________________________________

Help really appreciated.
Thank you
joe
0
AspNetMan111
8/21/2004 10:55:21 PM
HI, 

 

Dim objBanana As New BananaMobile.BananaMobile

The above line looks good. Althought you have the same NameSpace name and also the Same Class Name, maybe its giving errors.
Try something like this:
 

Dim objBanana As New Banana

Also check that GetCategory Returns OleDbDataReader object
 

Dim objReader As OleDbDataReader = objBanana.GetCategory(CategoryID)

HighOnCoding
Wanna get high!
0
azamsharp
8/22/2004 1:53:27 AM
previously tried to rename namspace but didnt work. How do I check that GetCategory Returns OleDbDataReader object . I am not using code behind. 

thanks
0
AspNetMan111
8/22/2004 3:33:44 AM
Well you can check by just looking at the Method Defination 

It should be something like this:
 

public OleDbDataReader GetCategory(string CategoryID) {
}

HighOnCoding
Wanna get high!
0
azamsharp
8/22/2004 4:12:10 AM
************* Edited by moderator Adec ***************

Inserted missing < code></ code> tags. Always include such
tags when including code in your postings. Don't force the
moderators to do this for you. Many readers disregard
postings without the code tags.
**************************************************

It looks fine.

Public Function GetCategory(ByVal Category As String) As OleDbDataReader
Dim objReader As OleDbDataReader
Dim objCmd As New OleDbCommand("spGetCategory", objConn)
objCmd.CommandType = CommandType.StoredProcedure
Dim objParam As New OleDbParameter("@Category", OleDbType.Char)
objParam.Value = Category
objCmd.Parameters.Add(objParam)
Try
objConn.Open()
objReader = objCmd.ExecuteReader
Catch e As Exception
Throw e
End Try
Return objReader
End Function

0
AspNetMan111
8/22/2004 8:33:31 PM
Hi, 

Your code looks fine but if the exception is thrown then Return objReader never gets executed. Try to display a message inside the Catch Block and see what it displays.
HighOnCoding
Wanna get high!
0
azamsharp
8/22/2004 9:56:30 PM
I tried to remove those exception. but didnt work Same issue. But I think it throws exception only if you have an error otherwise if it executes then returns objreader.
0
AspNetMan111
8/23/2004 8:12:30 AM
Reply:

Similar Artilces:

Please help me to solve BC30182: Type expected. Error.
Hello All, I am trying to create complete application in the book Teach yourself asp.net in 21 days (c) 2002. I have been trying to run this application completely but I am getting several errors. I have been debugging to solve it for the last 2 months but have been able to fix some. I typed up exactly and followed the instruction accordingly but still errors. Below is one of the error I encountered when clicking on category link. (My appllication folder is named BananaMobile not ty21) Please help me resolve this issue. Server Error in '/BananaMobile' Application. -----...

trying to get started and i am getting this error
when i go to http://www.porkchopsplayground.com, i get: DotNetNuke Upgrade Error The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] ) ERROR: Could not connect to database. Could not find file 'd:\hosting\nmoran26\Providers\DataProviders\AccessDataProvider\DotNetNuke.mdb'. Any suggestions will be appreciated. Thanks, Nicole Do you have a username and password set on your database? Make sure you follow the steps mentionned in the Readme.txt located in the documentation folder. In any case make sure your credentials for yo...

Getting error in Net::SFTP with get function
------=_Part_7028_3315294.1193837808284 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I have the following code as part of my program; print "---=========> $file, $localFile\n"; $sftp -> get( $file, $localFile ) || warn("errrrr0rrrrr _---> $!".$sftp->status."\n");^M Even though it has downloaded the file properly, it is giving the following message: ---=========> /trading/tiscrdenhlist10310000.txt.old, /export/home/crdadm/rajeev/tiscrdenhlist103...

Retrograding httpHandler from .NET 2.0 to 1.1, get "Parser Error Message: Could not create type" message
Hi there,I have written a httpHandler using VS2005 and .NET 2.0 that builds and works fine.However, I am now having to convert it to .NET 1.1, which I hoped would just be a case of changing the runtime used by the web app (as in running the 1.1 version of aspnet_regiis, with a "-s" switch pointing at my web apps folder). After doing this though (and fixing a few minor differences with web.config), if I then navigate to my handler I get the following error message:Server Error in '/Path/To/MyWebApp' Application.Parser ErrorDescription: An error occurred during the parsing of...

Getting "Problem in Mapping Fragment starting at line ..." error when trying to create table mappings for table associations in ADO.NET Entity Framework
 Table A: COUNTRY_LOOKUP COUNTRY_ID   smallintclustered, unique, primary key located on PRIMARY    COUNTRY_ID TABLE B: COUNTRY_MODE_RULES CARRIER_ID    intMODE_RULE_TYPE_ID    intORIG_COUNTRY_ID    smallintDEST_COUNTRY_ID    smallint clustered, unique, primary key located on PRIMARY    CARRIER_ID, MODE_RULE_TYPE_ID, ORIG_COUNTRY_ID, DEST_COUNTRY_IDThere is a foreign key relationship from COUNTRY_MODE_RULES to COUNTRY_LOOKUPORIG_COUNTRY_IDREFERENCES .COUNTRY_LOOKUP (COUNTRY_ID)DEST_CO...

Trying to transfer a Web Service made in .NET aspx on my "localhost", to online and getting BC30002: Type 'localhost.Convert' is not defined. error
I think I get the general idea of this error.  The webservice works on my computer as Visual Web Developer somehow makes a temporary server out of my computer.  But when I try to FTP my full ASP page I get an error that localhost is not defined.  This makes sense as I am sure the web server for GoDaddy is not called localhost for me.  Now in my App_WebReferences folder in my program I have a local host folder that holds 3 automatically generated files which are somehow "calls" to a webservice that I built.  So I have the original files for the webservi...

[PATCH] Net::FTP
I'm playing around with fetching things from the CPAN shell here. We have an FTP and an HTTP proxy here. While stepping through things in the debugger, I notice that Net::FTP::new loads $fire from $arg{Firewall} || $ENV{FTP_FIREWALL} || $NetConfig{ftp_firewall} || undef; $fire_type is initialised similarly but %NetConfig is not consulted. Is this deliberate? If not, I suggest the following patch: --- /home/pne/tmp/install/perl-5.8.0/lib/Net/FTP.pm Sat Jun 1 19:03:20 2002 +++ /home/pne/lib/perl5/5.8.0/Net/FTP.pm Tue Jan 28 11:29:10 2003 @@ -70,6 +70,7 @@ delete $arg{Po...

while compiling getting error as : error: expected �=�, �,�,
Hi, I am using gcc (GCC) 4.2.1 (SUSE Linux). SUSE 10.3 While compiling a .c file I get following error Configuration.h:70: error: expected �=�, �,�, �;�, �asm� or �__attribute__� before �extern� can anybody tell me ways to sort out such problems. Thanks -- prabhat_singh ------------------------------------------------------------------------ Correct the error in your program. -- ken_yap ------------------------------------------------------------------------ ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221 View this thread: htt...

used a c#.net to vb.net converter and am now getting a syntax error.
ok I used a cool utility at http://www.kamalpatel.net/ConvertCSharp2VB.aspx to convert some c#.net to vb.net and it spit out a bunch of code which almost works but I am getting a syntax error on this line Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) I tried it that way and also like Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) but either way gave the same error Compiler Error Message: BC30035: Syntax error. Source Error: Line 26: Line ...

Errors getting started
I'm new to ASP.NET and am trying to get a very simple hello world page working. On my 2003 server, when I hit the hello.aspx page, I get a DNS error. Looking in the httperr log, I see: 2004-08-16 21:22:12 <ip> 1462 <ip> 80 HTTP/1.1 GET /IDE/hello.aspx - 1 Connection_Abandoned_By_AppPool There's nothing in the web access log (Logfiles/W3SVC1) And in the event viewer I see: A process serving application pool 'TestPool' terminated unexpectedly. The process id was '1224'. The process exit code was '0xc06d007e'. And/Or: A process serving application pool 'TestP...

Error:Type Expected
I did create one simple program which is used to retrieve data from SQL Server Database into the DataGrid. Unfortunately,compilation stops at the position that 'Dim conn as SQLConnection'.The error is just same as the subject 'Type Expected'. By the way, the default frameworkSDK from VS.NET version 1.0 lies different place from .NET1.1 I did install recently.If so, I wonder which FrameworkSDK will be used if I'm intending to compile ASP.NET Web Application. Looking forward to your timely kind reply! At the top of your page with the code, are you importing the System.Data namespace? ...

how to get start with .NET
the net help people installed  to my desktop 1-microsoft visual studio .NET enterprise developer 2003 2-microsoft .NET framework 1.1 what else do i need ...???  and how can i try with some simple code in VS.Net and run it to see wat happen...????? please help If you want to develope web applications, then you'll also need IIS on your PC.  That'll require XP-Professional or Windows 2000/2003, but XP-Home edition won't allow IIS installation. As for how to get started, you can search the web for some tutorials or buy a good book on VS.  The topic is way too vast to...

Getting Start With .net
hi i'm intersted to learn asp.net (vb or delphi) . i programming with delphi6 but i'd like to tp know something about programming in internet specially with .net . i hear about microsoft.net with delphi 7 that i can programming with delphi in .net .... is it right ? what 's our opinian about it ? and better to learn Vb.Net or continu with delphi(or delphi.net) thanks. Ali Darabian I think there is some support for Delphi in .Net. However, you will find much more support from the user community if you choose a more popular language such as VB.Net or C#. Since your al...

Converting classic to .NET 2 code, and .NET gets an error back from ADS?
 For future-proofing, our Internal Phone Directory is being moved onto our AD servers, and obviously we're using LDAP for queries.To get the phoneboook queries working, I adapted the current classic ASP code to use LDAP, and that works fine. However, we're wanting to move these pages to .NET, and that's where the problem comes in. Using the same basic logic from the Classic code (90% of its unchanged) to produce an LDAP query, I get the error  155 Unknown error (0x80005000)This is using the same website, and so the same credentials  - unless aspx pages run und...

Web resources about - Instantiation Error BC30182: Type expected. - asp.net.getting-started

Instantiation - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...


Java Tip 67: Lazy instantiation
The balance between the performance of software and the resources it consumes has been an issue since the birth of computers. It stems from the ...

Google Releases Recently-Acquired Instantiations Development Tools, Free Of Charge
Back in August Google acquired Instantiations, the developer of a suite of popular development tools focused on Google's Google Web Toolkit, ...

Thomas Aquinas - Wikipedia, the free encyclopedia
Giles of Rome , Godfrey of Fontaines , Hooker , Locke , Dante , Leibniz , Martain , Gilson , Anscombe , Donoso Cortés , Eckhart , Chesterton ...

Presentations ~ Stephen's Web
Stephen's Web, the home page of Stephen Downes, with news and information on e-learning, new media, instructional technology, educational design, ...

The Journal of Religion and Popular Culture
The Journal of Religion and Popular Culture is committed to the academic exploration, analysis and interpretation, from a variety of disciplinary ...

Dictionary of Philosophy of Mind - functionalism
functionalism(1) - The view that the physical realization of a functional component is not, in some sense, its essence. Rather, what makes a ...

The Future of Journalism
Openbusiness has interviewed Kenneth Neil Cukier, who is a technology correspondent for The Economist in London specialising in public policy ...

RICHARD CHARTIER - BIO
Listening to Richard Chartier’s work is like sitting in a room at dusk while the light fades. As colours and detail drain away the eye seeks ...

Resources last updated: 1/20/2016 7:41:17 AM