473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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 file I get this error "Compiler Error
Message: BC30451: Name 'changelang' is not declared.". I do not
understand why I the ASP page works and the ASPX page will not work. It
is the exact same code, the only difference is the page extension name.
I found something today that mentioned that ASP does not support
runat="server". The only problem with that is I need the runat="server"
because all my form fields are server side.

Does anyone know the reasoning for this or no a way around this?

Jul 22 '05 #1
3 4775
because ASP and ASP.NET (.ASPX) are two completely different animals with
completely different languages, interperted by completly different DLL's.

What made you think a .ASP could be renamed to .ASPX and still work?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<se****@selenabil.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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 file I get this error "Compiler Error
Message: BC30451: Name 'changelang' is not declared.". I do not
understand why I the ASP page works and the ASPX page will not work. It
is the exact same code, the only difference is the page extension name.
I found something today that mentioned that ASP does not support
runat="server". The only problem with that is I need the runat="server"
because all my form fields are server side.

Does anyone know the reasoning for this or no a way around this?

Jul 22 '05 #2
I know they are completely different languages but I thought the
languages could be mixed together? They can't?

Jul 22 '05 #3
no.
they use different DLL's in IIS to interpret them. They can not be mixed.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<se****@selenabil.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I know they are completely different languages but I thought the
languages could be mixed together? They can't?

Jul 22 '05 #4

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

Similar topics

0
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"...
1
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...
2
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
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...
1
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...
4
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...
3
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">...
4
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:...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.