asp.net怎么连接 access??狂散分
我希望有高人能帮我解决这个小问题...最好能给我一个小案例看看..我的邮箱是 wuyeboyingying@163.com..
<appSettings>
<add key="SQLConnString" value="provider=microsoft.jet.oledb.4.0;data source="/>
<add key="dbPath" value="~/App_Data/mydata.mdb"/>
</appSettings>
public static readonly string strConn = System.Configuration.ConfigurationManager.AppSettings["SQLConnString"].ToString() + System.Web.HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["dbPath"]) + ";";
//using System.Data.OleDb;
protected void Button1_Click(object sender, EventArgs e)
{
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OleDb.4.0;Data Source=|DataDirectory|\\studentinfo.mdb");
conn.Open();
string sqlstr = "select * from basic_info";
OleDbDataAdapter da = new OleDbDataAdapter(sqlstr, conn);
OleDbCommandBuilder cmd = new OleDbCommandBuilder(da);
DataSet ds = new DataSet();
da.Fill(ds, "basic_info");
&nb
相关问答:
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为空值, ......
本人目前遇到一个难题,请各位高手、大侠帮帮忙。
我单击一个按钮时要把gridview中的数据一个一个的取出并把对应参数传递给前台的js。
我试了几种后台调前台的方式都没有成功,所以请大侠们帮帮小弟。
谢谢。
不 ......
从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式文件
<folder state="unchecked" label="全部">
<folder state="unchecked" isBra ......
类似于csdn 右边用什么控件显示贴子标题 以及怎样分页?跪求高手答复
续:就像点到asp版 然后显示贴子
随便你!!
分页控件这个就多了!
aspnetpager
http://www.webdiyer.com/AspNetPager
这里显示贴子的 ......