473,231 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Can VB code access C# methods w/in same App_Code?

Using VS2005, I wrote a C# web application. One small part of the app needed
to communicate with an old VB6 COM SMTP component. Ran into some frustrating
type-mismatch issues, so I decided to add a shared VB.NET function to make
the call.

I created separate language folders in App_Code, and added the appropriate
codeSubDirectories entries in my Web.config. Everything works fine, except
that I would also like to use an existing static method within a C# Utility
class. Both C# and VB class files use the same namespace.

Although I have no problem calling both VB and C# code from my code behind,
it doesn't look like my VB and C# code can see each other. I this a
multi-language limitation, or am I missing something?

Jan 30 '06 #1
0 1224

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pavan Apuroop | last post by:
Hi All, I am creating a web application using ASP .Net 2.0 Beta 2. I want to place all my code behind files in a special folder (App_Code) and access them in my web application. I have done...
7
by: sck10 | last post by:
Hello, I have the following sub in a class in my "App_Code" directory. The script is for setting focus on a particular control, but I get the error, "Name ClientScript Not declared". Also, I am...
3
by: evian_spring | last post by:
Hi, I was under the impression it was possible to have two files written in different langage with the .NET 2.0 Framework? I have created a new web site, added one APP_CODE folder and under...
2
by: walter | last post by:
Hi, when I add a new page in my asp.net 2 project and put some controls there, everything works fine until I move the code behind into App_Code folder.--When I compile , it tells me that control...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
0
by: nandar | last post by:
Hi All, I am involved in migratinig one of the MS Access Project to ASP.Net and SQL Server 2000. My question here is that how Modules and Class Modules (MS Access) can be taken care in ASP.Net. To...
1
by: MING | last post by:
If i create a module inside App_Data, how can i access the web control Property on webform? Just like VB6 , i create a *.vb , the can direct access the control property like FrmMain.TextBox1.Text...
10
by: Bub.Paulson | last post by:
A month ago I finally took the plunge and began learning C# and ASP.Net, coming from a Classic ASP and VBScript background. In my classic ASP, I had my own little library of code that I stuck in...
1
by: =?Utf-8?B?cmxt?= | last post by:
Steps to reproduce: 1. Create new web app. I am in v3.5 and vs2008 2. Create App_Code folder 3. Add Class A with public static int B; 4. Go to default.aspx.cs Page_Load and the compiler says that...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.