Help for a newbie. I have a C# with an Oracle backend. The app seems to be connecting with the db but I can’t get anything to show in a textbox and the datagrid doesn’t show at all in runtime? Any help would be great. Here is my code to this point.
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Oracle.DataAccess;
using System.Data.OracleClient;
using System.Configuration;
private void Page_Load(object sender, system.EventArgs e)
{
string oConn = ConfigurationSettings.AppSettings[“oConn”];
using(OracleConnection connection = new OracleConnection(oConn))
{
connection.Open();
string oCMD = “SELECT USERNAME, PASSWORD FROM MQDP_BORROWER_TBL”;
OracleDataAdapter oDA = new OracleDataAdapter(oCMD, oConn);
DataSet ds = new DataSet();
oDA.Fill(ds, “test”);
txtUser.Text = ds.ToString();
dgInfo.DataSource = ds.Tables.ToString();
}
}