Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Server Error in '/' 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: BC30451: Name 'dtlAboutDatalist' is not declared.
- Source Error:
- Line 26:
- Line 27: myDataAdapter.Fill(myDataSet, "wp_cu_posts")
- Line 28: dtlAboutDatalist.DataSource = myDataSet
- Line 29: dtlAboutDatalist.DataBind()
- Line 30:
- Source File: C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx Line: 28
- Show Detailed Compiler Output:
- c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /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__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\MySql.Data\6.2.4.0__c5687fc88969c44d\MySql.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1081eb45\decfb08b\App_Web_kjpx4obs.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1081eb45\decfb08b\kjpx4obs.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1081eb45\decfb08b\App_Web_kjpx4obs.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1081eb45\decfb08b\App_Web_kjpx4obs.1.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.
- C:\Inetpub\wwwroot\cu-2011\assists\inc-header-functions.aspx(18) : error BC30451: Name 'dtlHeadlinesDatalist' is not declared.
- dtlHeadlinesDatalist.DataSource = rightDataSet
- ~~~~~~~~~~~~~~~~~~~~
- C:\Inetpub\wwwroot\cu-2011\assists\inc-header-functions.aspx(19) : error BC30451: Name 'dtlHeadlinesDatalist' is not declared.
- dtlHeadlinesDatalist.DataBind()
- ~~~~~~~~~~~~~~~~~~~~
- C:\Inetpub\wwwroot\cu-2011\assists\inc-header-functions.aspx(29) : error BC30451: Name 'dtlInTheNewsDatalist' is not declared.
- dtlInTheNewsDatalist.DataSource = rightDataSet
- ~~~~~~~~~~~~~~~~~~~~
- C:\Inetpub\wwwroot\cu-2011\assists\inc-header-functions.aspx(30) : error BC30451: Name 'dtlInTheNewsDatalist' is not declared.
- dtlInTheNewsDatalist.DataBind()
- ~~~~~~~~~~~~~~~~~~~~
- C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx(28) : error BC30451: Name 'dtlAboutDatalist' is not declared.
- dtlAboutDatalist.DataSource = myDataSet
- ~~~~~~~~~~~~~~~~
- C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx(29) : error BC30451: Name 'dtlAboutDatalist' is not declared.
- dtlAboutDatalist.DataBind()
- ~~~~~~~~~~~~~~~~
- Show Complete Compilation Source:
- Line 1: #ExternalChecksum("C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx","{406ea660-64cf-4c82-b6f0-42d48172a799}","DF2306EC3CF90327C19EC70E8F01A648")
- 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 MySql.Data
- Line 17: Imports MySql.Data.MySqlClient
- Line 18: Imports System
- Line 19: Imports System.Collections
- Line 20: Imports System.Collections.Specialized
- Line 21: Imports System.Configuration
- Line 22: Imports System.Data
- Line 23: Imports System.Text
- Line 24: Imports System.Text.RegularExpressions
- Line 25: Imports System.Web
- Line 26: Imports System.Web.Caching
- Line 27: Imports System.Web.Profile
- Line 28: Imports System.Web.Security
- Line 29: Imports System.Web.SessionState
- Line 30: Imports System.Web.UI
- Line 31: Imports System.Web.UI.HtmlControls
- Line 32: Imports System.Web.UI.WebControls
- Line 33: Imports System.Web.UI.WebControls.WebParts
- Line 34:
- Line 35: Namespace ASP
- Line 36:
- Line 37: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
- Line 38: Public Class who_we_are_aspx
- Line 39: Inherits Global.System.Web.UI.Page
- Line 40: Implements System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler
- Line 41:
- Line 42: Private Shared __initialized As Boolean
- Line 43:
- Line 44: Private Shared __stringResource As Object
- Line 45:
- Line 46: Private Shared __fileDependencies As Object
- Line 47:
- Line 48:
- Line 49: #ExternalSource("C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx",7)
- Line 50:
- Line 51: '====================================================
- Line 52: ' name: About Page 2/7/2011
- Line 53: ' Author: Kirk Risinger
- Line 54: ' Scope: Displays About Page
- Line 55: '=====================================================
- Line 56: Sub MySQLDBConnection()
- Line 57: Dim myConnection As MySqlConnection
- Line 58: Dim myDataAdapter As MySqlDataAdapter
- Line 59: Dim myDataSet As DataSet = New DataSet
- Line 60:
- Line 61: Dim strSQL As String
- Line 62: Dim iRecordCount As Integer
- Line 63:
- Line 64: myConnection = New MySqlConnection("SERVER=204.12.119.230; DATABASE=faithandthea; USER=IUSR; PASSWORD=I@manInt3rn3tUs3r;")
- Line 65:
- Line 66: strSQL = "SELECT post_title, post_content FROM wp_cu_posts WHERE ID='311'"
- Line 67:
- Line 68: myDataAdapter = New MySqlDataAdapter(strSQL, myConnection)
- Line 69:
- Line 70: myDataAdapter.Fill(myDataSet, "wp_cu_posts")
- Line 71: dtlAboutDatalist.DataSource = myDataSet
- Line 72: dtlAboutDatalist.DataBind()
- Line 73:
- Line 74:
- Line 75: End Sub
- Line 76: '-------------------------------------------------------------------
- Line 77: ' name: Page_Load()
- Line 78: '-------------------------------------------------------------------
- Line 79: Sub Page_Load(sender As Object, e As EventArgs)
- Line 80: If Page.IsPostBack = False Then
- Line 81: Try
- Line 82: Call MySQLDBConnection()
- Line 83: Call RightColumnBoxes()
- Line 84: Catch objError As Exception
- Line 85: Response.Write("We are very sorry. There was an issue loading this webpage.")
- Line 86: Exit Sub ' and stop execution
- Line 87: End Try
- Line 88: End If
- Line 89: 'txtSearch.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnSearch.UniqueID + "').click();return false;}} else {return true}; ")
- Line 90: 'txtEmail.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnEmail.UniqueID + "').click();return false;}} else {return true}; ")
- Line 91: End Sub
- Line 92:
- Line 93: #End ExternalSource
- Line 94:
- Line 95:
- Line 96: #ExternalSource("C:\Inetpub\wwwroot\cu-2011\assists\inc-header-functions.aspx",1)
- Line 97:
- Line 98: Sub RightColumnBoxes()
- Line 99: Dim rightConnection As MySqlConnection
- Line 100: Dim rightDataAdapter As MySqlDataAdapter
- Line 101: Dim rightDataSet As DataSet = New DataSet
- Line 102:
- Line 103: Dim rightSQL As String
- Line 104: Dim rightRecordCount As Integer
- Line 105:
- Line 106: rightConnection = New MySqlConnection("SERVER=204.12.119.230; DATABASE=faithandthea; USER=IUSR; PASSWORD=I@manInt3rn3tUs3r;")
- Line 107:
- Line 108: '---------- Headlines Data --------------
- Line 109: rightSQL = "SELECT ID, post_title, post_content, post_date FROM wp_cu_posts WHERE ID IN (SELECT `object_id` FROM `wp_cu_term_relationships` WHERE `term_taxonomy_id` IN ('3','4')) AND post_status = 'publish' ORDER BY post_date DESC LIMIT 0, 4"
- Line 110:
- Line 111: rightDataAdapter = New MySqlDataAdapter(rightSQL, rightConnection)
- Line 112:
- Line 113: rightDataAdapter.Fill(rightDataSet, "wp_cu_posts")
- Line 114: dtlHeadlinesDatalist.DataSource = rightDataSet
- Line 115: dtlHeadlinesDatalist.DataBind()
- Line 116: '---------- End Headlines --------------
- Line 117:
- Line 118: '---------- In The News Data ------------
- Line 119: rightSQL = "SELECT ID, post_title, post_content, post_date FROM wp_cu_posts WHERE ID IN (SELECT `object_id` FROM `wp_cu_term_relationships` WHERE `term_taxonomy_id` = '6') AND post_status = 'publish' ORDER BY post_date DESC LIMIT 0, 4"
- Line 120:
- Line 121: rightDataAdapter = New MySqlDataAdapter(rightSQL, rightConnection)
- Line 122:
- Line 123: rightDataSet.Clear() 'empty data from previous Dataset data
- Line 124: rightDataAdapter.Fill(rightDataSet, "wp_cu_posts")
- Line 125: dtlInTheNewsDatalist.DataSource = rightDataSet
- Line 126: dtlInTheNewsDatalist.DataBind()
- Line 127: '---------- End In The News ------------
- Line 128: End Sub
- Line 129:
- Line 130: Private Function TruncateWithWholeWords(ByVal OriginalString As String, ByVal NumberOfWords As Integer) As String
- Line 131: ' Declarations
- Line 132: Dim strResult As New StringBuilder
- Line 133: Dim strWords As String()
- Line 134:
- Line 135: ' Replace multiple spaces with single ones
- Line 136: Do While (OriginalString.IndexOf(Space(2)) >= 0)
- Line 137: OriginalString = OriginalString.Replace(Space(2), Space(1))
- Line 138: Loop
- Line 139:
- Line 140: ' Split the string by a space
- Line 141: strWords = OriginalString.Split(" ")
- Line 142:
- Line 143: ' If there aren't the required number of spaces, return the orignal string
- Line 144: If strWords.GetUpperBound(0) < NumberOfWords Then
- Line 145: Return OriginalString
- Line 146: Else
- Line 147: ' Otherwise, append each word to the new stringbuilder
- Line 148: For i As Integer = 0 To NumberOfWords - 1
- Line 149: strResult.Append(strWords(i) & " ")
- Line 150: Next
- Line 151: ' Return the required phrase
- Line 152: Return strResult.ToString.Trim
- Line 153: End If
- Line 154: End Function
- Line 155:
- Line 156: #End ExternalSource
- Line 157:
- Line 158:
- Line 159: Public Sub New()
- Line 160: MyBase.New
- Line 161: Dim dependencies() As String
- Line 162: CType(Me,System.Web.UI.Page).AppRelativeVirtualPath = "~/who-we-are.aspx"
- Line 163: If (Global.ASP.who_we_are_aspx.__initialized = false) Then
- Line 164: Global.ASP.who_we_are_aspx.__stringResource = Me.ReadStringResource
- Line 165: dependencies = New String(1) {}
- Line 166: dependencies(0) = "~/who-we-are.aspx"
- Line 167: dependencies(1) = "~/assists/inc-header-functions.aspx"
- Line 168: Global.ASP.who_we_are_aspx.__fileDependencies = Me.GetWrappedFileDependencies(dependencies)
- Line 169: Global.ASP.who_we_are_aspx.__initialized = true
- Line 170: End If
- Line 171: Me.Server.ScriptTimeout = 30000000
- Line 172: End Sub
- Line 173:
- Line 174: Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile
- Line 175: Get
- Line 176: Return CType(Me.Context.Profile,System.Web.Profile.DefaultProfile)
- Line 177: End Get
- Line 178: End Property
- Line 179:
- Line 180: Protected ReadOnly Property ApplicationInstance() As System.Web.HttpApplication
- Line 181: Get
- Line 182: Return CType(Me.Context.ApplicationInstance,System.Web.HttpApplication)
- Line 183: End Get
- Line 184: End Property
- Line 185:
- Line 186: Private Sub __BuildControlTree(ByVal __ctrl As who_we_are_aspx)
- Line 187:
- Line 188: #ExternalSource("C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx",1)
- Line 189: Me.InitializeCulture
- Line 190:
- Line 191: #End ExternalSource
- Line 192: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
- Line 193:
- Line 194: #ExternalSource("C:\Inetpub\wwwroot\cu-2011\who-we-are.aspx",1)
- Line 195: __parser.AddParsedSubObject(Me.CreateResourceBasedLiteralControl(0, 1257, true))
- Line 196:
- Line 197: #End ExternalSource
- Line 198: End Sub
- Line 199:
- Line 200: Protected Overrides Sub FrameworkInitialize()
- Line 201: MyBase.FrameworkInitialize
- Line 202: SetStringResourcePointer(Global.ASP.who_we_are_aspx.__stringResource, 0)
- Line 203: Me.__BuildControlTree(Me)
- Line 204: Me.AddWrappedFileDependencies(Global.ASP.who_we_are_aspx.__fileDependencies)
- Line 205: Me.TraceEnabled = false
- Line 206: Me.Request.ValidateInput
- Line 207: End Sub
- Line 208:
- Line 209: Public Overrides Function GetTypeHashCode() As Integer
- Line 210: Return 1236230536
- Line 211: End Function
- Line 212:
- Line 213: Public Overrides Sub ProcessRequest(ByVal context As System.Web.HttpContext)
- Line 214: MyBase.ProcessRequest(context)
- Line 215: End Sub
- Line 216: End Class
- Line 217: End Namespace
- Line 218:
- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement