标题:帮我看下代码出错了
只看楼主
guaishi
Rank: 1
等 级:新手上路
帖 子:156
专家分:0
注 册:2007-6-15
结帖率:100%
 问题点数:0 回复次数:1 
帮我看下代码出错了
Protected Sub AccessDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles AccessDataSource1.Selecting
        Dim conn As New Data.OleDb.OleDbConnection
        conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("App_Data/#db1.mdb")
        conn.Open()
        Dim comm As New Data.OleDb.OleDbCommand
         = "select * typename from ptype where ppid=0"
        comm.Connection = conn
        Dim dr As Data.OleDb.OleDbDataReader
        dr = comm.ExecuteReader
      
        AccessDataSource1.DataFile = Server.MapPath("App_Data/#db1.mdb") '出错行
        AccessDataSource1.DataBind()
搜索更多相关主题的帖子: App Data MapPath Server 代码 
2008-08-20 16:22
仰望星空
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:7
帖 子:473
专家分:93
注 册:2007-2-11
得分:0 
VB的看不懂,AccessDataSource1是什么东东

当人们仰望天空的时候,才有了翱翔的愿望;当人们仰望星空的时候,才有了远航的渴望。
2008-08-20 22:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-229191-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017521 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved