having vb and c# files in web application project

G

Guest

Hi
I had an VS 2005 web application project with vb as language.
I need to add some 4-5 user control files which are done in c# inside this
web application project.
Is it possible to have both vb and c# language files in an web application
project?
If yes then how to achieve it?
pls advice.
 
G

Guest

-mani said:
Hi
I had an VS 2005 web application project with vb as language.
I need to add some 4-5 user control files which are done in c# inside this
web application project.
Is it possible to have both vb and c# language files in an web application
project?
If yes then how to achieve it?
pls advice.

Just add them. There is no problem mixing languages in an application.
 
R

rowe_newsgroups

You just need to add them as project.
You just need to add them as project.

In web apps you don't have to worry about adding different languages
as projects - they will intermix just fine. (I wish that was true for
win apps....)

Thanks,

Seth Rowe
 
E

Egghead

You are right;

May be it is my stupid VS 2005 pro, it always has some problems when I
create them inside the project. So, I just create them in another project.
 
G

Guest

Hi
I had an VS 2005 web application project with vb as language.
I need to add some 4-5 user control files which are done in c# inside
this web application project.
Is it possible to have both vb and c# language files in an web
application project?
If yes then how to achieve it?


Just create multiple App_Code folders - and place each language into it's
own app_code folder:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/bro
wse_thread/thread/404429bff3d2d669/ddfa0e83f20f5eab?
lnk=st&q=+mix+language++web.config&rnum=1&hl=en#ddfa0e83f20f5eab
 
H

Herfried K. Wagner [MVP]

Egghead said:
May be it is my stupid VS 2005 pro, it always has some problems when I
create them inside the project. So, I just create them in another project.

Note that mixed projects are possible for Web projects but not the other
project types.
 
G

Guest

Thanks for your replies.

As I had mentioned it is an Web Application Project, not a Web Site.
When the C# user control files are added in Web Application Project, it is
not able to refer in other aspx pages.
 
G

Guest

Thanks for your reply.

As I had mentioned it is Web Application Project, not a website project.
And the C# files are user control files. It cant be added in App_Code folders.
 
G

Guest

Thanks for your reply.

As I had mentioned it is Web Application Project, not a website
project. And the C# files are user control files. It cant be added in
App_Code folders.

I guess just compile the user controls as a user control library and
reference it from the calling app?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top