re:
!> Can I use both C# and VB files to create this?
Yes.
re:
!> I have 3 classes that are in C# and 4 that are in VB and would like to put them in the same library.
No problem.
You can add subdirectories to the App_Code directory
in order to process multiple languages under the App_Code directory.
In order to do this, you need to register each subdirectory in the
<codeSubDirectories> element of the application's Web.config.
<configuration>
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="VB"/>
<add directoryName="CS"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>
Then, simply creating the App_Code\VB and App_Code\CS directories in your application's root,
and placing your VB and CS files in each, will allow you to use both languages in your app.
You can use any name you want for your subdirectories,
as long as you register the correct name in web.config.
This works in ASP.NET 2.0 and later versions!
Note: this only works for class files, and not for code-behind, OK ?
re:
!> can they use the same namespace?
I've never tried it, but that shouldn't be a problem.
The files in each directory will wind up in a different dll depending on your compilation model,
but since ASP.NET 2.0 and later use partial classes there shouldn't be a problem.
An alternative way to do this would be to compile your different-language source files from
the command-line, and placing the compiled assemblies in the application's /bin directory.
In both cases, you'll have to import the desired namespaces into your aspx files.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================