473,941 Members | 12,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler Error Message: BC30451: Name 'DataLoad' is not declared.

2 New Member
Any idea? I have Exam.vb and aspx page:

<!------------ Exam.vb start //---------------------------->
Imports System.Data
Module Exam
Public Function DataLoad() As ICollection
Dim dt As DataTable = New DataTable()
Dim dv As DataView
Dim dr As DataRow
dt.Columns.Add( New DataColumn("Exa mNumber", GetType(String) ))
dt.Columns.Add( New DataColumn("Exa mName", GetType(String) ))
dr = dt.NewRow()
dr(0) = "305"
dr(1) = "Web Applications With VB.Net"
dt.Rows.Add(dr)
.
.
.
dv = New DataView(dt)
Return dv
End Function
End Module
<!------------ Exam.vb end //---------------------------->
<!------------ Sample.aspx start //---------------------------->
<%@ Page Language="VB"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<script runat="server">
Private Sub Page_load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
lbExams.DataSou rce = DataLoad()
lbExams.DataTex tField = "ExamName"
DataBind()
End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>StepBySt ep5-5</title>
</head>
<body>
<form id="form1" runat="server">
<div>
&nbsp;</div>
<asp:ListBox ID="lbExams" runat="server"> </asp:ListBox>
</form>
</body>
</html>
<!------------ Sample.aspx end //---------------------------->

Thanks!
Sep 6 '06 #1
0 2393

Sign in to post your reply or Sign up for a free account.

Similar topics

0
5996
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false" Codebehind="CRList.ascx.vb" Inherits="x.x.x.net.WebUserControl1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <% If CRListType = "full" %> ----------ERROR IS OCCURRING HERE ----------- ------------------------
3
4799
by: selena | last post by:
I have created 2 ASP pages that gives users the option of switching back and forth between French and English. They click on the word English and it converted the text to English and the French link converts the text to French. In the ASP page with the form on it there is an includes file pointing to the scripts page. The scripts page holds the values for both languages. It works great in ASP but as soon as I rename the page to a .aspx...
1
2200
by: Matt Tapia | last post by:
I trying to compile a .vb file as such: vbc /t:library /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll /r:System.dll /r:System.Data.Dll /r:System.Web.Services.dll /r:System.Xml.dll C:\Inetpub\wwwroot\crm\CRMdbService.vb In the file I used the function DateAdd. When I compile I get Error BC30451 Name 'DateAdd' is not declared. I have the following imports in my code: Imports System
2
3823
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
5
3215
by: Kevin R | last post by:
I'm trying to update a sql database. It's modified Oledb code from an example that did work with an access database. How can I tweak my code to make it work? Thanks in advance. Kevin ====== Code error:
1
1590
by: Matt Creely | last post by:
I'm using the vbc.exe to compile a .dll automatically for me. I have all my framework references and imports setup correctly. And it will compile just fine, with a few lines of code commented out. Here's the problem. I have a vb class in my project("gamelan") called "Utilities". It's a public class, with a bunch of public shared methods I use through out the site. So when I try to compile, I get this error: ...
4
2222
by: Roy | last post by:
Hey all, Created an .aspx page using VB as the code behind. Compiler pops up error: "BC30451: Name 'Replace' is not declared." Essentially, it acts as if Replace is a custom function that needs to be declared, not a built in one. What gives? FWIW, the code below occurs within a sub within a class. Thanks for any advice! strSQLQuery = "UPDATE " _
4
6838
by: Don Quijote de Nicaragua | last post by:
Hi, I have a problem trying to load a page, sends me the following error message: Error Message: BC30451: Name 'Utilities' is not declared. Line 50: </ DIV> Line 51: <div id="side"> Line 52: <% = Utilities.createNavBar ()%> Line 53: </ DIV> Line 54: <div id="main">
0
1234
by: Tony | last post by:
Hi, when i run this code below, i get the error:Compiler Error Message: BC30451: Name 'check' is not declared. but if i compile it in advance like this:aspnet_compiler -p "c:\inetpub\wwwroot\resintra" -v / c:\compiled\resintra -f or if i run it within Visual Web Developer (Cassini), in both cases it works without error!! Any idea?
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11293
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9858
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3505
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.