ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Populate ComboBox from MS Access Data Base using C#<p>Hi <a class="username" rel="siddangoud"> siddangoud</a>,</p> <p>Refer the below code.</p> <pre class="brush: csharp">string conStr = &#34;PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&#34; + Server.MapPath(&#34;~/database.mdb&#34;); OleDbConnection objCon; OleDbCommand objCmd; DataTable dt = new DataTable(); string getSql = string.Empty; getSql = &#34;(SELECT * FROM Batch)&#34;; using(objCon = new OleDbConnection(conStr)) { objCon.Open(); using (objCmd = new OleDbCommand(getSql, objCon)) { OleDbDataAdapter da = new OleDbDataAdapter(objCmd); da.Fill(dt); } } objCon.Close(); comboBox1.DataSource = dt; comboBox1.ValueMember = &#34;Batch_Name&#34;; comboBox1.DisplayMember = &#34;Batch_Name&#34;;</pre>https://www.aspforums.net:443/Threads/136469/Populate-ComboBox-from-MS-Access-Data-Base-using-C/https://www.aspforums.net:443/Threads/136469/Populate-ComboBox-from-MS-Access-Data-Base-using-C/Mon, 26 Sep 2016 07:25:55 GMT