473,796 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiler error BC30451 but not when pre-compiled

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_com piler -p
"c:\inetpub\www root\resintra" -v / c:\compiled\res intra -f
or if i run it within Visual Web Developer (Cassini), in both cases it works
without error!!

Any idea?
Thanks T.

Public Class check
Public Shared Sub beh()
Dim cok As HttpCookie
Dim ja As String
Dim jv As String
cok = HttpContext.Cur rent.Request.Co okies("ok")
ja = cok.Value
If ja <"1" Then
jv = "<script language='javas cript'>" _
& " alert('You must first registrate');" _
& " window.location .href='start.as px';" _
& "</script>"
HttpContext.Cur rent.Response.W rite(jv)
End If
End Sub
End Class

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)
Handles Me.Load
check.beh()
Nov 8 '08 #1
0 1231

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5987
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
4793
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
2195
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
1
1028
by: Andy Fish | last post by:
Hi, I am looking for some mechanism of pre-compiling my aspx pages (primarily for use in development to spot compilation errors) The first 2 I tried failed to spot when a page had a syntax error in it. can anyone recommend a pre-compiler that actually precompiles the pages? TIA
2
3816
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 :
4
2216
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 " _
5
5512
by: cody | last post by:
the following leads to an error (note that TEST is not defined): #if TEST string s = @" #"; // <-- the error is "preprocessing directive expected" #endif also, here we get the same error: #if TEST
3
4222
by: SinCity | last post by:
I am getting the error "BC30451: Name '__w' is not declared". How can I fix this? Here is my code... <script language="javascript"> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>'; </script>
0
922
by: Amy Zhao | last post by:
Hi, I get the mentioned compilation error after I deployed my website to the host server. Everything works fine on my local machine. What is the problem?? Any help is appreciated!! BC30451: Name 'Directory' is not declared. Line 10: Dim albumPath As String = GetPath(PathTypes.Originals)
4
6827
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
9685
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
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
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
7558
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
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
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...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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.