• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Who here knows ASP.NET?

Juniper

Platinum Member
Hi people.

Ok, Im trying to make asp.net work with mySQL. From information gathered from here and there, I've understood that I have to install the ODBC pack provided by Microsoft.

However, I cannot seem to be able to import the namespace System.Data.Odbc

Here is how I wrote the line which refers to the Odbc:

<%@ Import Namespace="System.Data.Odbc" %>

And here is the compilation error:

Compiler Error Message: CS0234: The type or namespace name 'Odbc' does not exist in the class or namespace 'System.Data' (are you missing an assembly reference?)
 
Nope.

You wanna use OleDb.

<%@ Import Namespace="System.Data.OleDb" %>

Then, make sure that you got the right drivers for MySQL. After that, follow the QuickStart tutorials (or from a book) to open an OleDbConnection, etc.
 
nope, i don't know it, but microsoft is giving a lecture today at my school on it. so i'll be there trying to figure out what it is.
 
Nope.

You wanna use OleDb.

<%@ Import Namespace="System.Data.OleDb" %>

Then, make sure that you got the right drivers for MySQL. After that, follow the QuickStart tutorials (or from a book) to open an OleDbConnection, etc.



joohang, hey thanks for the tip. I don't know why, but I've been obstinately trying to make mySQL work with ASP.NET using the System.Data.Odbc. Never occurred to me that I could use OleDb. 😱

Thx man.


NeoMadHatter, you're so lucky 😉 Enjoy the course.

 
Ewwww, ODBC.


<< but why dont you use php? >>


Spit, blak, yuck. You may have a small point with PHP vs ASP, but ASP.NET blows everything out of the water. For some tasks, development time is cut by two-thirds or more...and it's fast! PHP will soon be relegated as a special-interest platform...like Linux.
 
Yeah olddb is what you want for most things/everything vs odbc.

PhP is for penguin-f**kers! Linus fanboys! 😀
 


<< joohang, hey thanks for the tip. I don't know why, but I've been obstinately trying to make mySQL work with ASP.NET using the System.Data.Odbc. Never occurred to me that I could use OleDb. 😱 >>


Yeah. When you get an error message asking "Are you missing an assembly reference?" it likely means that you're not using the correct class library.

Also, get used to the MSDN Library (.NET Class Libraries Reference). 😉



<< Thx man. >>


No problem. 😀
 


<< ASP is for windows suckers! M$ fanboys! >>


ASP != ASP.NET

Seriously. They are very different beasts.

ASP.NET 0wnz j00 4ll. 🙂
 


<< Nope.

You wanna use OleDb.

<%@ Import Namespace="System.Data.OleDb" %>

Then, make sure that you got the right drivers for MySQL. After that, follow the QuickStart tutorials (or from a book) to open an OleDbConnection, etc.



joohang, hey thanks for the tip. I don't know why, but I've been obstinately trying to make mySQL work with ASP.NET using the System.Data.Odbc. Never occurred to me that I could use OleDb. 😱

Thx man.


NeoMadHatter, you're so lucky 😉 Enjoy the course.
>>



thanks. i just got back from it. it was very interesting. learned a bit about what asp is and what asp.net is and some IIS stuff too. all very interesting. the highlight was probably free pizza and got out with a free full copy of windows xp professional and windows plus! for xp. going to the visual studio.net presentation tomorrow and getting another copy of windows xp pro. should be fun.
 
Yeah. When you get an error message asking "Are you missing an assembly reference?" it likely means that you're not using the correct class library.

Also, get used to the MSDN Library (.NET Class Libraries Reference).



🙂
 
Back
Top