Home All Groups Group Topic Archive Search About

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

Author
23 Mar 2005 6:56 PM
selena
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?

Author
23 Mar 2005 7:04 PM
Curt_C [MVP]
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


<sel***@selenabil.com> wrote in message
Show quoteHide quote
news:1111604172.757884.55900@o13g2000cwo.googlegroups.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?
>
Fix windows and pc errors, click for free system scan

Author
23 Mar 2005 7:14 PM
selena
I know they are completely different languages but I thought the
languages could be mixed together? They can't?
Author
23 Mar 2005 7:27 PM
Curt_C [MVP]
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


<sel***@selenabil.com> wrote in message
Show quoteHide quote
news:1111605253.211301.173520@l41g2000cwc.googlegroups.com...
>I know they are completely different languages but I thought the
> languages could be mixed together? They can't?
>

Bookmark and Share