Dim strConnection As String="Provider=Microsoft.Jet.OleDb.4.0;data source=c:\Inetpub\wwwroot\authors.mdb;"
看这句里的数据库的位置是不是正确。
你的代码没有在 codebehind里写,所以应该在 <body onload="page_load"

解决方案 »

  1.   

    1、我的这段代码应该保存为.asp还是.aspx
    2、这段代码是不是只能执行看不到结果呢
    3、codebehind是什么,我不明白,请各位高手给一指教
    4、如果codebehind是软件,应在哪下载
      

  2.   

    这段代码执行完后,出现这样的提示:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------The resource cannot be found. 
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested Url: /test.aspx
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 
    是什么意思?
    应怎样解决。
    请各位高手给一指教。谢谢。