469,921 Members | 2,201 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,921 developers. It's quick & easy.

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 4606
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Matt Tapia | last post: by
1 post views Thread by Matt Creely | last post: by
3 posts views Thread by SinCity | last post: by
4 posts views Thread by Don Quijote de Nicaragua | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.