having vb and c# files in web application project

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
-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.
 
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
 
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.
 
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
 
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.
 
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.
 
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.
 
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?
 
Back
Top