about namespaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumalatha055
    New Member
    • Aug 2008
    • 3

    about namespaces

    OracleClient namespace name doesnot exist in the namespace 'System.Data' what can i do for this
    using System;
    using System.Data;
    using System.Configur ation;
    using System.Web;
    using System.Web.Secu rity;
    using System.Web.UI;
    using System.Web.UI.W ebControls;
    using System.Web.UI.W ebControls.WebP arts;
    using System.Web.UI.H tmlControls;
    using System.Data.Ora cleClient;
    public partial class _Default : System.Web.UI.P age
    {
    OracleConnectio n objcon = new OracleConnectio n("Data Source=fsoft ;user=fcctest; password=fcctes t");
    OracleCommand objcmd = new OracleCommand() ;
    protected void Page_Load(objec t sender, EventArgs e)
    {

    }
    protected void Button1_Click(o bject sender, EventArgs e)
    {
    objcon.Open();
    DataSet ds = new DataSet();
    OracleDataAdapt er da = new OracleDataAdapt er("select * from CAN_PERSONALINF O where REFERANCE_ID=" + TextBox1.Text + " ", objcon);
    da.Fill(ds);
    GridView1.Datas ource = ds.Tables[0];
    GridView1.DataB ind();
    objcon.Close();
    }
    protected void Button2_Click(o bject sender, EventArgs e)
    {
    objcon.Open();
    DataSet ds = new DataSet();
    OracleDataAdapt er da1 = new OracleDataAdapt er("select * from CAN_PERSONALINF O where REFERANCE_ID=" + TextBox1.Text + " ", objcon);
    OracleDataAdapt er da2 = new OracleDataAdapt er("update CAN_PERSONALINF O SET FIRST_NAME=" + TextBox2.Text + " ", objcon);
    da.Fill(ds1);
    GridView1.Datas ource = ds1.Tables[0];
    GridView1.DataB ind();
    objcon.Close();
    }
    }
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Check whether the compiler is able to pick the header file which is having the sname space...

    raghu

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by gpraghuram
      Check whether the compiler is able to pick the header file which is having the sname space...

      raghu
      Did you include the reference to System.Data.Ora cleClient.dll?

      P.S Is this a C# question?

      Comment

      Working...