Saturday, December 26, 2009

How To Connect Oracle in ASP.NET

1. Create a new web site.

2. In solution explorer right click and click Add Reference. Then select "System.Data.OracleClient" namespace

3. Then Create a new class file(.cs) and
the class file automatically create under a folder named App_Code. Copy all content of the file "OracleConnect.cs" (provided) and paste them in your new created class(.cs) file.

4. Then you are done.

5. A sample project is provided.


Attachments:
1. OracleConnect.cs
2. A sample Project


Remember:
1. Don't Forget to change your oracle username and password in sample project.
2. In Oracle 10g Express edition database name is "XE" ( default )

Regards
Md. Humayun Kabir
Department of CSE
BUET

No comments:

Post a Comment