![]() |
| ||
| Table Control, wats wrong OleDbConnection cn = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\\tblImp\\db1.mdb"); cn.Open(); DataSet ds = new DataSet(); OleDbDataAdapter da = new OleDbDataAdapter("select * from tblImp", cn); da.Fill(ds, "tblImp"); tablecontrol.datasource() = ds.Tables[0]; tablecontrol.DataBind(); table is not populated with data from access database. help me plz. |
| ||
| Re: Table Control, wats wrong first, run your program in debug mode. You need to insert a breakpoint at cn.Open and F11 through step by step. Why? To see if the connection has even been made properly. I dont seen an InitialCatalog value for your connection string. This might need addending as well. |
| ||
| Re: Table Control, wats wrong hi, i am a beginner in asp.net. wat to do to populate table control from access database. above code is not workin. problem is in bindin data with table control. how to bind data to table control. thanks for help. |
| All times are GMT -4. The time now is 10:48 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC