Thursday, March 22, 2012

OleDB not in C#?

Hey, quick question.

When I have a login.aspx with login.vb codebehind, everything works just fine when I import System.Data.OleDB. When I switched to login.aspx with login.cs codebehind, it can't find System.Data.OleDB anymore. I tried this both on my host and my local web server, and got the same results. Is OleDB not in C#? Is there a replacement? I thought that there was a correlation between C#, VB, J# and they were interchangable.

Thanks in advance,
Christhere is oleDb in C#, try to add reference for oleDB
C# is case-sensitive. VB.NET is not.

The namespace is actually System.Data.OleDb (lower case 'b').
Duh. Thanks. I can't believe I spent that much brain on that problem. Case sensitivity got me...

0 comments:

Post a Comment