Question

Locked

Binding to a textbox

By bdw1969 ·
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();
}
}

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums