- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[CODE]public partial class Form : System.Web.UI.Page { private void connecttodb() { OracleConnection conn = new OracleConnection(); conn.ConnectionString = "User Id=WLL; Password=wll; Data Source=WLL;"; } protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { String CommandText = "Select DepartmentID,Department from its_department;"; OracleDataReader odr = GetDr(CommandText, ConnectionString); DropDownList1.DataSource = odr; DropDownList1.DataTextField ="Department"; … |
|
[code]public partial class Form : System.Web.UI.Page { private void connecttodb() { OracleConnection conn = new OracleConnection(); conn.ConnectionString = "User Id=WLL; Password=wll; Data Source=WLL;"; } protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { String CommandText = "Select DepartmentID,Department from its_department;"; OracleDataReader odr = GetDr(CommandText, ConnectionString); DropDownList1.DataSource = odr; DropDownList1.DataTextField ="Department"; … |